Skip to main content

bgng search and bgng query

Both commands search indexed qmd collections. Choose based on the kind of match you need.

CommandBackendUse when
bgng search <query>BM25 lexical searchYou know the exact terms.
bgng query <query>BM25 plus vector plus optional rerankYou know the idea but not the exact wording.

Examples

bgng search "database performance"
bgng search "database performance" -n 10 --json
bgng query "how do databases handle concurrent writes"
bgng query "rust async" --intent "systems programming" --explain
bgng query "rust async" --no-rerank

Shared flags

FlagDescription
-n=<count>Result limit. Default is 5.
-c, --collection=<name>Restrict to one collection.
--fullShow full documents instead of snippets.
--jsonEmit SearchResult[].

Query-only flags

FlagDescription
--min-score=<float>Filter low scoring results.
--intent=<hint>Provide a domain hint.
--explainShow score breakdown details.
--no-rerankSkip LLM reranking for speed.