Skip to main content

Semantic Search

Semantic retrieval is the first selection stage in the build pipeline.

Flow

  1. Encode each query with SentenceTransformer.
  2. Query the tools collection in ChromaDB.
  3. 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.