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