karthikvenkatesan-eaton/Autogen_GraphRAG_Ollama
关于
Microsoft 的 GraphRAG + AutoGen + Ollama + Chainlit = 完全本地运行且免费的多智能体 RAG 超级机器人
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文GraphRAG + AutoGen + Ollama + Chainlit UI = Local Multi-Agent RAG Superbot

This application integrates GraphRAG with AutoGen agents, powered by local LLMs from Ollama, for free and offline embedding and inference. Key highlights include:
- Agentic-RAG: - Integrating GraphRAG's knowledge search method with an AutoGen agent via function calling.
- Offline LLM Support: - Configuring GraphRAG (local & global search) to support local models from Ollama for inference and embedding.
- Non-OpenAI Function Calling: - Extending AutoGen to support function calling with non-OpenAI LLMs from Ollama via Lite-LLM proxy server.
- Interactive UI: - Deploying Chainlit UI to handle continuous conversations, multi-threading, and user input settings.

Useful Links 🔗
- Full Guide: Microsoft's GraphRAG + AutoGen + Ollama + Chainlit = Fully Local & Free Multi-Agent RAG Superbot Medium.com 📚
📦 Installation and Setup Linux
Follow these steps to set up and run AutoGen GraphRAG Local with Ollama and Chainlit UI:
Install LLMs:
Visit Ollama's website for installation files.
ollama pull mistral ollama pull nomic-embed-text ollama pull llama3 ollama serveCreate conda environment and install packages:
conda create -n RAG_agents python=3.12 conda activate RAG_agents git clone https://github.com/karthik-codex/autogen_graphRAG.git cd autogen_graphRAG pip install -r requirements.txtInitiate GraphRAG root folder:
mkdir -p ./input python -m graphrag.index --init --root . mv ./utils/settings.yaml ./Replace 'embedding.py' and 'openai_embeddings_llm.py' in the GraphRAG package folder using files from Utils folder:
sudo find / -name openai_embeddings_llm.py sudo find / -name embedding.pyCreate embeddings and knowledge graph:
python -m graphrag.index --root .Start Lite-LLM proxy server:
litellm --model ollama_chat/llama3Run app:
chainlit run appUI.py
📦 Installation and Setup Windows
Follow these steps to set up and run AutoGen GraphRAG Local with Ollama and Chainlit UI on Windows:
Install LLMs:
Visit Ollama's website for installation files.
ollama pull mistral ollama pull nomic-embed-text ollama pull llama3 ollama serveCreate conda environment and install packages:
git clone https://github.com/karthik-codex/autogen_graphRAG.git cd autogen_graphRAG python -m venv venv ./venv/Scripts/activate pip install -r requirements.txtInitiate GraphRAG root folder:
mkdir input python -m graphrag.index --init --root . cp ./utils/settings.yaml ./Replace 'embedding.py' and 'openai_embeddings_llm.py' in the GraphRAG package folder using files from Utils folder:
cp ./utils/openai_embeddings_llm.py .\venv\Lib\site-packages\graphrag\llm\openai\openai_embeddings_llm.py cp ./utils/embedding.py .\venv\Lib\site-packages\graphrag\query\llm\oai\embedding.pyCreate embeddings and knowledge graph:
python -m graphrag.index --root .Start Lite-LLM proxy server:
litellm --model ollama_chat/llama3Run app:
chainlit run appUI.py
探索相关项目
加载中…