Skip to content

MoGA (Mixture-of-Graph-Agents) is an advanced question-answering system that leverages multiple language models and a graph-based approach to generate high-quality responses. It combines the strengths of various models, performs web searches for up-to-date information, and uses an iterative refinement process to produce comprehensive answers.

License

Notifications You must be signed in to change notification settings

mikeoller82/MoGA-Mixture-of-Graph-Agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoGA (Mixture-of-Graph-Agents)

MoGA is a powerful question-answering system that utilizes multiple language models from Groq and a graph-based approach from Langchain's Langgraph to generate high-quality responses. It combines the strengths of Groqs models, performs web searches for up-to-date information, and uses an iterative refinement process to produce comprehensive answers. The replies do take a few minutes but there is alot going on under the hood and the content is next level compares to gpt4o content easily and its free :)

Features

  • Uses multiple LLMs as proposer models (llama3-8b-8192, gemma2-9b-it, mixtral-8x7b-32768)Groq Models
  • Aggregates responses using llama3-70b-8192
  • Performs web searches for current information
  • Iterative refinement process with reflection
  • Rate limiting to manage API usage

Installation

  1. Clone the reoo cd moga
  2. Create a virtual environment:python -m venv venv source venv/bin/activate

On Windows, use venv\Scripts\activate

  1. Install the required packages: pip install -r requirements.txt

    1. Set up your environment variables: Create a .env file in the project root and add your API keys:

OPENAI_API_KEY=your_openai_api_key GROQ_API_KEY=your_groq_api_key ANTHROPIC_API_KEY=your_anthropic_api_key TAVILY_API_KEY=your_tavily_api_key

Usage

Run the main script: python moga.py

Follow the prompts to enter your query and specify the maximum number of iterations.

License

This project is licensed under the MIT License - see the [LICENSE] file for details.

ANY AND ALL CONTRIBUTIONS OR IMPROVEMENTS WELCOME

About

MoGA (Mixture-of-Graph-Agents) is an advanced question-answering system that leverages multiple language models and a graph-based approach to generate high-quality responses. It combines the strengths of various models, performs web searches for up-to-date information, and uses an iterative refinement process to produce comprehensive answers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages