38 lines
935 B
Python
38 lines
935 B
Python
"""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",
|
||
]
|