Semantic Search
Semantic retrieval is the first selection stage in the build pipeline.
Flow
- Encode each query with
SentenceTransformer. - Query the
toolscollection in ChromaDB. - Return the top-k metadata chunks.
Current default embedding model
all-MiniLM-L6-v2
Retrieval target
The system searches over tool metadata chunks, not over full repository source trees. That keeps the index compact and puts quality pressure on the tool_description field.
Output
Semantic search returns candidate documents that are later reranked before the final tool match is chosen.