修改引用逻辑,修改长期记忆bug
This commit is contained in:
@@ -13,7 +13,7 @@ RAG 检索与生成模块
|
||||
用户查询 → 多路改写 → 并行检索 → RRF 融合 → 重排序 → 返回父文档
|
||||
|
||||
示例用法:
|
||||
>>> from app.rag import RAGPipeline, create_rag_tool
|
||||
>>> from app.rag.rag import RAGPipeline, create_rag_tool
|
||||
>>> from rag_indexer.builder import IndexBuilder, IndexBuilderConfig
|
||||
>>> from langchain_openai import ChatOpenAI
|
||||
>>>
|
||||
@@ -34,16 +34,16 @@ RAG 检索与生成模块
|
||||
>>> rag_tool = create_rag_tool(retriever=retriever, llm=llm)
|
||||
"""
|
||||
|
||||
from .retriever import (
|
||||
from app.rag.retriever import (
|
||||
create_base_retriever,
|
||||
create_hybrid_retriever,
|
||||
create_qdrant_client,
|
||||
)
|
||||
from .reranker import LLaMaCPPReranker
|
||||
from .query_transform import MultiQueryGenerator
|
||||
from .fusion import reciprocal_rank_fusion
|
||||
from .pipeline import RAGPipeline
|
||||
from .tools import create_rag_tool, create_rag_tool_sync
|
||||
from app.rag.reranker import LLaMaCPPReranker
|
||||
from app.rag.query_transform import MultiQueryGenerator
|
||||
from app.rag.fusion import reciprocal_rank_fusion
|
||||
from app.rag.pipeline import RAGPipeline
|
||||
from app.rag.tools import create_rag_tool_sync
|
||||
|
||||
|
||||
__all__ = [
|
||||
@@ -65,6 +65,5 @@ __all__ = [
|
||||
"RAGPipeline",
|
||||
|
||||
# 工具创建(供 Agent 使用)
|
||||
"create_rag_tool",
|
||||
"create_rag_tool_sync",
|
||||
]
|
||||
Reference in New Issue
Block a user