CodeReview/backend/app/services/rag/__init__.py

36 lines
739 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
RAG (Retrieval-Augmented Generation) 系统
用于代码索引和语义检索
🔥 v2.0 改进:
- 支持嵌入模型变更检测和自动重建
- 支持增量索引更新(基于文件 hash
- 支持索引版本控制和状态查询
"""
from .splitter import CodeSplitter, CodeChunk
from .embeddings import EmbeddingService
from .indexer import (
CodeIndexer,
IndexingProgress,
IndexingResult,
IndexStatus,
IndexUpdateMode,
INDEX_VERSION,
)
from .retriever import CodeRetriever
__all__ = [
"CodeSplitter",
"CodeChunk",
"EmbeddingService",
"CodeIndexer",
"CodeRetriever",
"IndexingProgress",
"IndexingResult",
"IndexStatus",
"IndexUpdateMode",
"INDEX_VERSION",
]