MCPcopy Index your code
hub / github.com/InferCore/InferCore / RetrievalAdapter

Interface RetrievalAdapter

internal/interfaces/interfaces.go:42–45  ·  view source on GitHub ↗

RetrievalAdapter performs retrieval for RAG (v1.5).

Source from the content-addressed store, hash-verified

40
41// RetrievalAdapter performs retrieval for RAG (v1.5).
42type RetrievalAdapter interface {
43 Name() string
44 Retrieve(ctx context.Context, query string, opts map[string]any) (types.RetrievalResult, error)
45}
46
47// RerankAdapter reorders or filters retrieval chunks before the model call (optional RAG step).
48type RerankAdapter interface {

Callers 2

runRAGRetrieveFunction · 0.65
runRAGPipelineMethod · 0.65

Implementers 4

HTTPJSONKBinternal/retrieval/http_kb.go
FileKBinternal/retrieval/filekb.go
MeilisearchKBinternal/retrieval/meilisearch_kb.go
OpenSearchKBinternal/retrieval/opensearch_kb.go

Calls

no outgoing calls

Tested by

no test coverage detected