MCPcopy Create free account
hub / github.com/astercloud/aster / RetrieveWithMetadata

Method RetrieveWithMetadata

pkg/knowledge/rag.go:165–167  ·  view source on GitHub ↗

RetrieveWithMetadata 带元数据的检索

(ctx context.Context, query string, metadata map[string]any)

Source from the content-addressed store, hash-verified

163
164// RetrieveWithMetadata 带元数据的检索
165func (r *RAG) RetrieveWithMetadata(ctx context.Context, query string, metadata map[string]any) (*RAGResult, error) {
166 return r.Retrieve(ctx, query, WithMetadata(metadata))
167}
168
169// RetrieveSimilar 检索相似内容
170func (r *RAG) RetrieveSimilar(ctx context.Context, itemID string, maxResults int) (*RAGResult, error) {

Callers

nothing calls this directly

Calls 2

RetrieveMethod · 0.95
WithMetadataFunction · 0.85

Tested by

no test coverage detected