embeddingsNote annotates whether semantic retrieval has a vector backend.
(embeddings bool)
| 152 | |
| 153 | // embeddingsNote annotates whether semantic retrieval has a vector backend. |
| 154 | func embeddingsNote(embeddings bool) string { |
| 155 | if embeddings { |
| 156 | return " (embeddings on)" |
| 157 | } |
| 158 | return " (embeddings off — falls back to keyless lexical)" |
| 159 | } |
| 160 | |
| 161 | // Detach removes a context from the session. |
| 162 | func (a *contextPluginAdapter) Detach(name string) (string, error) { |