初始化

This commit is contained in:
2026-07-18 16:13:52 +08:00
parent c0070f0a5c
commit fe8b417ab6
75 changed files with 12898 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
"""Qdrant 向量知识库模块 (M6)。
公共 API:
- VectorStore: Qdrant 封装(init / upsert / query / info / count
- SearchFilter / SearchResult / CollectionInfo: 数据模型
- make_qdrant_client: 工厂(内存/本地文件/远程 HTTP)
- ingest_all_embeddings / search_news / get_collection_info: 管道
"""
from vectorstore.client import (
DEFAULT_COLLECTION,
DEFAULT_VECTOR_DIM,
VectorStore,
make_qdrant_client,
)
from vectorstore.models import CollectionInfo, SearchFilter, SearchResult
from vectorstore.pipeline import (
get_collection_info,
ingest_all_embeddings,
search_news,
)
__all__ = [
# 客户端
"DEFAULT_COLLECTION",
"DEFAULT_VECTOR_DIM",
"VectorStore",
"make_qdrant_client",
# 模型
"CollectionInfo",
"SearchFilter",
"SearchResult",
# 管道
"get_collection_info",
"ingest_all_embeddings",
"search_news",
]