""" 文档存储模块 - 用于 ParentDocumentRetriever 的父文档存储。 提供 PostgreSQL 存储后端: - PostgresDocStore: PostgreSQL 数据库存储(生产环境) 示例用法: >>> from rag_indexer.store import create_docstore >>> # 创建 PostgreSQL 存储 >>> store, conn = create_docstore( ... connection_string="postgresql://user:pass@host:5432/db", ... table_name="parent_docs" ... ) """ from .postgres import PostgresDocStore from .factory import create_docstore, get_docstore_uri, DEFAULT_DB_URI __version__ = "2.0.0" __all__ = [ # 具体实现 "PostgresDocStore", # 工厂函数 "create_docstore", "get_docstore_uri", "DEFAULT_DB_URI", ]