修改引用逻辑,修改长期记忆bug
This commit is contained in:
@@ -4,11 +4,11 @@ RAG 工具模块
|
||||
将检索功能封装为 LangChain Tool,供 Agent 调用。
|
||||
采用固定流水线:多路改写 → 并行检索 → RRF 融合 → 重排序 → 返回父文档。
|
||||
"""
|
||||
from typing import Optional, Callable
|
||||
from typing import Callable
|
||||
from langchain_core.tools import tool
|
||||
from langchain_core.language_models import BaseLanguageModel
|
||||
from langchain_core.retrievers import BaseRetriever
|
||||
from .pipeline import RAGPipeline
|
||||
from app.rag.pipeline import RAGPipeline
|
||||
|
||||
def create_rag_tool_sync(
|
||||
retriever: BaseRetriever,
|
||||
|
||||
Reference in New Issue
Block a user