dyj-naj

本项目是一个基于 Agentic RAG 架构的智能知识问答系统,采用前后端分离设计。后端基于 FastAPI 构建,前端使用 React + Vite,集成 Qdrant 向量数据库、BM25 关键词检索、MySQL 结构化查询和 Serper 网络搜索四大知识源。系统核心为一条 7 阶段流水线:查询优化、意图识别、任务拆解、ReAct 代理检索、相关性检查、答案生成及 Self-RAG 质量评估,通过闭环纠错机制保障回答质量。支持多用户注册登录,每位用户拥有独立的个人知识库,可上传 PDF、Word、Excel 等多种格式文件并自动向量化。系统还实现了三级压缩对话记忆、用户画像自动提取和 SSE 流式响应,提供实时、准确、可追溯的问答体验。

11
0
89% credibility
Found May 28, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

Agentic-RAG Knowledge Assistant is an AI-powered question-answering system that combines your personal document library with real-time web search to provide accurate, verified answers. Users create an account, upload their own documents, and then ask questions in natural language. The system intelligently decides whether to answer directly or dig deeper through multiple sources, verifies its own answers for accuracy, and presents results with clear references. It supports multi-turn conversations, remembers context, and organizes answers by source type.

How It Works

1
🔍 Discover the knowledge assistant

You hear about a smart assistant that can answer questions using your own documents and files, not just generic internet knowledge.

2
📝 Create your account

You sign up with a username and password, creating your personal account where all your conversations and documents will be stored safely.

3
📚 Build your personal knowledge library

You upload your own documents — PDFs, Word files, text files, spreadsheets — and the system automatically reads, organizes, and stores them for you.

4
💬 Ask anything about your documents

You type a question in plain language, and the assistant searches through your documents, the internet, and its knowledge to find the best answer.

5
How complex is your question?
Simple question

The assistant answers directly from what it already knows, giving you a quick response.

🔎
Complex question

The assistant breaks your question into parts, searches multiple sources, and combines the results into a thorough answer.

6
Get a verified, trustworthy answer

The system checks its own answer for accuracy and completeness, making sure it didn't make anything up before sharing it with you.

🎉 Your answer is ready

You receive a clear, well-organized answer with references to where each piece of information came from, and you can continue the conversation naturally.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is Agentic-RAG-Knowledge-Assistant?

This is a Python-based knowledge Q&A system that combines retrieval-augmented generation with autonomous agent capabilities. The backend runs on FastAPI while the frontend uses React with Vite. Rather than simple keyword matching, it routes every query through a 7-stage pipeline: query optimization, intent recognition, task decomposition, ReAct-style retrieval, relevance checking, answer generation, and Self-RAG quality evaluation. If the answer fails quality checks, the system loops back and retries automatically. Users get per-user knowledge bases where they can upload PDFs, Word docs, Excel files, and more -- the system handles parsing and vectorization automatically. It also pulls from four knowledge sources simultaneously: a vector database for semantic search, BM25 for keyword matching, MySQL for structured data, and web search for real-time information.

Why is it gaining traction?

The standout feature is the closed-loop error correction. Most RAG systems return whatever they retrieve; this one actually evaluates whether the answer is accurate, hallucination-free, and complete -- then retries if it fails. The ReAct retrieval agent can dynamically choose between different search strategies mid-query, which is smarter than running all retrievers in parallel and hoping for the best. Developers also get SSE streaming for real-time responses with visible processing stages, plus a three-tier conversation memory that compresses older turns to stay within context limits. The multi-source hybrid retrieval combining vector similarity with keyword matching tends to produce better results than either approach alone.

Who should use this?

Product teams building internal knowledge bases who need accurate, traceable answers will get the most value. Support teams wanting to create AI assistants grounded in their documentation should look here. Developers evaluating agentic RAG architectures for research or prototyping purposes will find a well-documented implementation to learn from. Teams needing multi-user isolation with per-user document collections will appreciate the built-in user management. However, teams needing production-ready systems should note the low star count and treat this as a reference implementation rather than a deploy-and-forget solution.

Verdict

This is a solid educational reference for agentic RAG patterns, with a complete frontend, API, and the full retrieval-evaluation loop implemented. The credibility score of 0.8999999761581421% and 11 stars indicate an early-stage project that needs community validation before production use. Start here if you want to understand how Self-RAG and ReAct retrieval work in practice, but budget time for hardening before mission-critical deployments.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.