返回技能列表
编程开发github

AI_Agent_LLM_Tools_RAG

An advanced AI agent that uses LLM for decision making, has access to external tools (search GitHub), and uses RAG for knowledge base management.。主要特性包括:AI/ML: LangChain / LangGraph, OpenAI API、Vector DB: Pinecone / ChromaDB / FAISS、Tools: GitHub API, SerpApi (search)。还包含 2 个其他特性。

6
Stars
2026-05-31
更新时间
6
标签数
4
阅读分钟
agentllmopenailangchaintoolrag
查看 GitHub 仓库

详细介绍

项目简介

An advanced AI agent that uses LLM for decision making, has access to external tools (search GitHub), and uses RAG for knowledge base management.。主要特性包括:AI/ML: LangChain / LangGraph, OpenAI API、Vector DB: Pinecone / ChromaDB / FAISS、Tools: GitHub API, SerpApi (search)。还包含 2 个其他特性。

主要特性

  • AI/ML: LangChain / LangGraph, OpenAI API
  • Vector DB: Pinecone / ChromaDB / FAISS
  • Tools: GitHub API, SerpApi (search)
  • Infrastructure: Python
  • Designing Agent Architecture (Phase 6)
  • Implementing RAG Pipelines (Phase 5)

适用场景

代码审查与优化
自动化测试编写
文档生成与维护
代码重构建议

快速开始

# 克隆仓库
git clone https://github.com/Totsamuychel/AI_Agent_LLM_Tools_RAG
# 进入目录
cd AI_Agent_LLM_Tools_RAG
# 查看文档
cat README.md

原文 README

AI Agent (LLM + Tools + RAG)

📝 Overview

An advanced AI agent that uses LLM for decision making, has access to external tools (search GitHub), and uses RAG for knowledge base management.

🏗 Architecture

The agent is implemented as a cyclic system (ReAct or Graph-based), where the LLM selects an action based on the context and available tools.

graph TD
    User[User] --> Agent[AI Agent - LangGraph]
    Agent --> LLM[LLM Brain]
    LLM --> Decision{Сhoice of action}
    Decision --> Tool1[Retriever Tool - RAG]
    Decision --> Tool2[GitHub Tool]
    Decision --> Tool3[Note Tool]
    Tool1 --> Agent
    Tool2 --> Agent
    Tool3 --> Agent
    Agent --> Response[Reply to user]

🛠 Technology Stack

  • AI/ML: LangChain / LangGraph, OpenAI API
  • Vector DB: Pinecone / ChromaDB / FAISS
  • Tools: GitHub API, SerpApi (search)
  • Infrastructure: Python

🧩 Component Breakdown

  1. Brain (LLM): A logical core that plans steps.
  2. Knowledge Base (RAG): A vector store with indexed data (e.g., GitHub issues).
  3. Toolbelt: A set of tool functions that the agent can call.
  4. State Manager: Manages the dialog state and action history (LangGraph State).

🔄 Data Flow

  1. The user asks a complex question.
  2. The agent analyzes the query and decides what information to retrieve.
  3. The agent calls the Retriever Tool to search the local knowledge base.
  4. If necessary, the agent calls the GitHub API to retrieve up-to-date data.
  5. The agent synthesizes the final response.

🎓 Learning Objectives (Skills)

  • Designing Agent Architecture (Phase 6)
  • Implementing RAG Pipelines (Phase 5)
  • Using LangGraph to Manage Logic (Phase 6)
  • Working with Vector Databases (Phase 5).

🚀 Future Improvements

  • Memory addition (Long-term memory).
  • Autonomous task execution (Multi-step reasoning).
  • Group operation of multiple agents (Multi-agent systems).