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