nageoffer/ragent

企业级 Agentic RAG 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、MCP 工具调用与深度思考。面向真实业务场景,从 0 到 1 完整工程实现。

What it solves

Ragent AI is a production-grade Java platform designed to bridge the gap between simple AI demos and enterprise-level Agentic RAG (Retrieval-Augmented Generation) systems. It addresses common production pitfalls such as poor retrieval accuracy, model instability, high token costs, and the lack of observability in AI applications.

How it works

The platform uses a modular Java architecture divided into specialized engines. It supports two primary interaction modes: a structured Workflow (v1) for predictable Q&A and an Agentic architecture (v2) where a ReAct engine allows the model to autonomously decide whether to use knowledge retrieval, MCP tools, or specific skills.

Key technical components include:

  • Hybrid Retrieval: Combines vector, keyword, knowledge graph, and web search with RRF fusion and Reranking.
  • Query Understanding: Implements query mapping, question rewriting/splitting, and tree-based intent recognition.
  • Model Management: Features model routing, first-packet detection, and circuit-breaking for failover.
  • Memory & Traffic: Uses persistent summaries for session memory and Redis-based fair queuing for concurrency control.
  • Knowledge Pipeline: Provides an orchestratable ingestion pipeline with remote refresh and traceability.

Who it’s for

  • Java Backend Developers: Those looking to transition into AI engineering without switching to Python.
  • Students/Job Seekers: Developers needing a high-complexity, non-CRUD project for their portfolios to demonstrate AI and engineering skills.
  • Enterprise Developers: Engineers building RAG systems who need a reference for production-grade patterns like multi-tenant isolation and observability.

Highlights

  • Agentic ReAct Engine: Supports autonomous tool use and multi-turn reasoning.
  • MCP Integration: Implements the Model Context Protocol for remote tool discovery and schema validation.
  • Production-Ready Infrastructure: Includes distributed rate limiting, transaction messages via RocketMQ, and full-link tracing.
  • Comprehensive Management Console: A React-based admin panel for managing knowledge bases, intent trees, and RAG traces.
  • Extensible Design: Uses design patterns (Strategy, Factory, Adapter) to allow easy swapping of LLMs, vector databases, or storage providers.

Related

  • Project
  • Project
  • Project
  • Project
  • Project