Files
ailine/backend/rag_core/__init__.py

34 lines
749 B
Python
Raw Permalink Normal View History

2026-04-21 11:02:16 +08:00
"""
RAG Core - 公共 RAG 组件包
提供嵌入模型向量存储和文档存储的公共功能 rag_indexer app/rag 共用
"""
from .embedders import LlamaCppEmbedder
2026-04-21 19:06:34 +08:00
from .vector_store import QdrantVectorStore
2026-04-21 11:02:16 +08:00
from .store import PostgresDocStore, create_docstore
from .retriever_factory import create_parent_retriever
2026-04-21 19:06:34 +08:00
from .config import (
QDRANT_URL,
QDRANT_API_KEY,
LLAMACPP_EMBEDDING_URL,
LLAMACPP_API_KEY,
DB_URI,
DOCSTORE_URI,
)
2026-04-21 11:02:16 +08:00
__all__ = [
"LlamaCppEmbedder",
"QdrantVectorStore",
"QDRANT_URL",
"QDRANT_API_KEY",
2026-04-21 19:06:34 +08:00
"LLAMACPP_EMBEDDING_URL",
"LLAMACPP_API_KEY",
"DB_URI",
"DOCSTORE_URI",
2026-04-21 11:02:16 +08:00
"PostgresDocStore",
"create_docstore",
"create_parent_retriever",
]