Search and retrieval
Retrieve source passages from indexed project documents within a response budget.
One retrieval pipeline
- Find candidates with multilingual vector search and PostgreSQL full-text ranking.
- Combine their ranks, keeping a smaller lexical contribution for exact terms.
- When configured, rerank the leading passages with a local cross-encoder.
- When configured and permitted, ask a judge whether each passage supports the question.
- Deduplicate and select passages within the requested token budget.
The single default embedding model is BAAI/bge-m3, including the on-the-fly path. Its multilingual vectors have 1,024 dimensions. Changing the model requires re-embedding stored documents and memories.
Support, abstention and a second round
A judge can return no supporting source
when none of the passages supports the question. An optional second round examines more candidates before abstaining; it is off by default. A provider outage preserves the previous order rather than claiming that no source exists.
Read the judge configuration and data-location policy before enabling external passage scoring.
Compact responses
Responses are compact by default. After a judge answers, qualifying passages are ordered by support probability, capped at three by default, and long sections are windowed around the matching text. Set include_metadata: true for the full payload. Answer packs require include_answer_pack: true.
Plans and options
Solo, Pro, Team and Enterprise plans use the full hybrid pipeline. Exact terms keep a small share of the ranking (a lexical weight of 0.1), so identifiers, error codes and file names still surface. The Free plan uses keyword search.
Reranking and the passage judge are optional stages that run only where they are enabled, so a query never waits on a stage it does not use. Memory recall has its own settings.
snipara_context_query({
query: "How are project API keys scoped?",
max_tokens: 800,
include_answer_pack: false
})Memory recall uses the same embedding model with its own ownership, lifecycle and evidence filters.
Last updated: September 24, 2026