
alpha_agentic_search
给 RAG 加上分层记忆,多轮问答不再失忆
项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-10-02 · 当前星标 ★ 475
使用教程
环境要求
- Python 3.11
- Conda
- 模型与搜索 API Key
安装与启动步骤
-
1建环境
锁 Python 3.11。
conda create -n search-agent python=3.11 -
2装依赖
requirements 里含检索与模型客户端。
pip install -r requirements.txt -
3配模型与搜索凭据
搜索接口和模型都要各自的 Key。
-
4跑命令行版
先用终端交互验证整条检索链路。
python main.py -
5再开图形界面
Web 版更适合观察中间步骤。
python main_web.py --port 7860
如何确认成功
提一个需要多跳检索的问题,能在中间步骤里看到它分层调用搜索、逐步收敛到答案的完整轨迹
注意事项
- 它把搜索 Agent 做成可拆解的教学工程,强调层次化、可控和耗时短,不是刷榜框架。
- 仓库同时给终端版和图形版,看中间过程用图形版更直观。
- 搜索 API 有配额和计费,调试时把最大轮数压小。
- 作者对工业界和个人助手场景的取舍写得很清楚,读一遍再改代码能少走弯路。
核心亮点
- 用分层记忆区分短期上下文与长期知识,缓解多轮问答中上下文丢失和重复检索
- agent 自主决定检索与记忆调用时机,比固定流程的 RAG 更灵活
- Python 实现、组件可插拔,便于替换向量库和大模型做二次开发
不足之处
- 项目处于早期,486 星,文档与社区生态尚不完善
- 缺少大规模评测与生产级部署说明,稳定性和性能待验证
适用场景
- 搭建带长期记忆的企业知识库问答助手
- 多轮对话式文档检索与追问场景
- 研究 agentic RAG 与分层记忆机制的实验原型
替代项目
LangChain、LlamaIndex
同类项目推荐
Mantic.sh
开源
让 AI 代理秒懂代码结构,精准检索上下文
A structural code search engine for Al agents.
storm
开源
输入主题,自动生成带引用的长文报告
An LLM-powered knowledge curation system that researches a topic and generates a ful···
deepsearch-toolkit
开源
用 Python 驱动深度搜索,快速挖掘科学文献新知识
Interact with the Deep Search platform for new knowledge explorations and discoverie···
Horizon
开源
每天几分钟,AI 帮你筛完天下新闻,中英文简报直达。
Your own AI-powered news radar. Generates daily briefings in English & Chinese. | 用···
Lumos
开源
本地模型驱动,边浏览网页边提问,隐私安全不泄露。
A RAG LLM co-pilot for browsing the web, powered by local LLMs
WikiChat
开源
让聊天机器人不再胡说八道,回答自带来源引用
WikiChat is an improved RAG. It stops the hallucination of large language models by ···
quanta-quest
开源
本地跑大模型,搜遍你的所有数据,隐私不泄露
AI-powered universal search for all your personal data, tailored just for you. Goal···
AgenticRAG-Survey
开源
一图看懂智能体RAG,快速入门前沿技术
Agentic-RAG explores advanced Retrieval-Augmented Generation systems enhanced with A···
Langchain-Chatchat
开源
把公司资料变成私人顾问,只答自己家的内容
Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等···