MCPcopy Create free account
hub / github.com/InferCore/InferCore / RerankAdapter

Interface RerankAdapter

internal/interfaces/interfaces.go:48–51  ·  view source on GitHub ↗

RerankAdapter reorders or filters retrieval chunks before the model call (optional RAG step).

Source from the content-addressed store, hash-verified

46
47// RerankAdapter reorders or filters retrieval chunks before the model call (optional RAG step).
48type RerankAdapter interface {
49 Name() string
50 Rerank(ctx context.Context, query string, chunks []types.RetrievalChunk, opts map[string]any) (types.RetrievalResult, error)
51}
52
53type CostEngine interface {
54 Estimate(req types.AIRequest, backend types.BackendMetadata) types.CostEstimate

Callers 5

assertAdapterConformanceFunction · 0.65
runRAGPipelineMethod · 0.65
runRAGRetrieveFunction · 0.65
runRAGPipelineMethod · 0.65

Implementers 1

NoopRerankinternal/retrieval/noop_rerank.go

Calls

no outgoing calls

Tested by

no test coverage detected