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

Method vectorSearch

pkg/knowledge/rag.go:409–413  ·  view source on GitHub ↗

vectorSearch 向量搜索

(_ context.Context, _ string, _ *RAGOptions)

Source from the content-addressed store, hash-verified

407
408// vectorSearch 向量搜索
409func (r *RAG) vectorSearch(_ context.Context, _ string, _ *RAGOptions) ([]*RetrievalItem, error) {
410 // TODO: 需要获取向量化器
411 // 这里先返回空结果
412 return []*RetrievalItem{}, nil
413}
414
415// graphSearch 图搜索
416func (r *RAG) graphSearch(_ context.Context, _ string, _ *RAGOptions) ([]*RetrievalItem, error) {

Callers 1

multiSourceRetrievalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected