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

Method Initialize

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

Initialize indexes all documents from the given paths.

(ctx context.Context, docPaths []string, chunking ChunkingConfig)

Source from the content-addressed store, hash-verified

11type Strategy interface {
12 // Initialize indexes all documents from the given paths.
13 Initialize(ctx context.Context, docPaths []string, chunking ChunkingConfig) error
14
15 // Query searches for relevant documents using the strategy's retrieval method.
16 // numResults is the maximum number of candidates to retrieve (before fusion).

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