MCPcopy Index your code
hub / github.com/docker/docker-agent / Query

Method Query

pkg/rag/strategy/types.go:17–17  ·  view source on GitHub ↗

Query searches for relevant documents using the strategy's retrieval method. numResults is the maximum number of candidates to retrieve (before fusion).

(ctx context.Context, query string, numResults int, threshold float64)

Source from the content-addressed store, hash-verified

15 // Query searches for relevant documents using the strategy's retrieval method.
16 // numResults is the maximum number of candidates to retrieve (before fusion).
17 Query(ctx context.Context, query string, numResults int, threshold float64) ([]database.SearchResult, error)
18
19 // CheckAndReindexChangedFiles checks for file changes and re-indexes if needed.
20 CheckAndReindexChangedFiles(ctx context.Context, docPaths []string, chunking ChunkingConfig) error

Callers 11

BuildAuthorizationURLFunction · 0.65
handleCallbackMethod · 0.65
handleQueryRAGMethod · 0.65
GatewayHTTPOptionsFunction · 0.65
QueryMethod · 0.65
GatewayTargetURLFunction · 0.65
RoundTripMethod · 0.65

Implementers 4

staticStrategypkg/rag/manager_rerank_test.go
Managerpkg/rag/manager.go
VectorStorepkg/rag/strategy/vector_store.go
BM25Strategypkg/rag/strategy/bm25.go

Calls

no outgoing calls