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 个其他特性。
详细介绍
项目简介
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
- Brain (LLM): A logical core that plans steps.
- Knowledge Base (RAG): A vector store with indexed data (e.g., GitHub issues).
- Toolbelt: A set of tool functions that the agent can call.
- State Manager: Manages the dialog state and action history (LangGraph State).
🔄 Data Flow
- The user asks a complex question.
- The agent analyzes the query and decides what information to retrieve.
- The agent calls the Retriever Tool to search the local knowledge base.
- If necessary, the agent calls the GitHub API to retrieve up-to-date data.
- 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).