bash-A v2
Retrieval

Search arms

The six vector and lexical retrieval methods exposed by the search API.

The retriever parameter selects one of six retrieval arms. Several arms can contribute candidates to a hybrid run.

ArmMethodNotes
bm25Sparse term-frequency rankingUseful for exact words, names, and codes.
tfidfTF-IDF vector rankingA lexical comparison baseline.
w2vCorpus-trained Word2Vec chunk representationLimited by vocabulary coverage and context.
denseQuery embedding compared with stored chunk embeddingsUses the configured embedding model and PostgreSQL vectors.
hybridWeighted fusion of active member rankingsCurrent weights: dense 0.60, BM25 0.40; TF-IDF and Word2Vec are zero-weight.
hybrid_rrHybrid candidate fusion followed by a cross-encoder rerankerDefault chat arm; falls back to fusion order when reranking is unavailable.

Choosing an arm

Use bm25 for literal terms such as names, codes, or distinctive phrases. Dense search can match semantically similar passages whose wording differs from the query. Hybrid fusion combines those complementary candidates. hybrid_rr applies a cross-encoder to refine the fused candidate order.

Chat's default is configurable through CHAT_RETRIEVER. See hybrid ranking for the fusion and reranking details.

On this page