docs: a remote index is searched by the model that built it

This commit is contained in:
lotherk committed 2026-11-23 00:48:06 +00:00
1 parent 98dce53200
commit d7ce939966
1 file changed
+7 -4
+7 -4
View File
@@ -537,8 +537,10 @@ is weaker than a real embedding model (measured: paraphrase 0.92, unrelated
0.01) and it is enough to tell "the deploy machine" from "the frontend build".
`embed = openai` sends the text to `<embed_endpoint>/embeddings` with
`embed_model`; `embed_dims` must match what the model returns. `embed = off`
keeps the tool out entirely.
`embed_model`; `embed_dims` must match what the model returns. The **question**
goes to the same endpoint: an index built by a model can only be searched by
that model, so a query is never hashed locally when the index was not. `embed =
off` keeps the tool out entirely.
Two things it does **not** do: it never runs inside the turn, and it never
delays an answer. The indexer is its own thread; a 937 KB session costs the turn
@@ -551,8 +553,9 @@ background without anything having been compacted.
The tool says what it found, or why it found nothing: `the index is still
filling; ask again in a moment` while the thread catches up on a session that
just grew, `the index is empty: nothing in this session has been indexed yet`
when there is nothing to search, and `the query has no searchable words` when
the question was all stopwords. All three are answers, not errors.
when there is nothing to search, `the query has no searchable words` when the
question was all stopwords (local encoder), and `the embedding endpoint refused
the query` when the remote one did. All of them are answers, not errors.
## Adding a provider from the chat