Semantic search enables the bot to retrieve information based on meaning rather than exact keyword matches. It leverages the vector embeddings stored in Qdrant.
## How It Works
1.**Query Embedding**– The user’s query string is converted into a dense vector using the same embedding model as the documents.
2.**Nearest‑Neighbor Search**– Qdrant returns the top‑k vectors that are closest to the query vector.
3.**Result Formatting**– The matching document chunks are concatenated and passed to the LLM as context for the final response.
## Using the `FIND` Keyword
```basic
SET_KB "company-policies"
FIND "how many vacation days do I have?" INTO RESULT
TALK RESULT
```
-`SET_KB` selects the collection.
-`FIND` performs the semantic search.
-`RESULT` receives the best matching snippet.
## Parameters
- **k** – Number of results to return (default 3). Can be overridden with `FIND "query" LIMIT 5 INTO RESULT`.