Skip to content

emooreatx/ccmp_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccmp_ai uses the Autogen-AGI Framework on top of the AutoGen framework for multi-agent conversational systems, towards the goal of discovering and utilizing information in repositories like bitsavers and VTDA to identify, recover, restore, repair, and demonstrate antique computers.

First, the agents check for existing knowledge, and if it has none, starts browsing a bitsavers mirror.

image

image

Then, the file is downloaded and a llama_index knowledge domain created

image

Finally, advanced RAG techniques return the result

image

image

Features

  • Enhanced Group Chat 💬: Modified AutoGen classes for advanced group chat functionalities.
  • Agent Council 🧙: Utilizes a council of agents for decision-making and speaker/actor selection. Based on a prompting technique explored in this blog post.
  • Agent Team Awareness 👥: Each agent is aware of its role and the roles of its peers, enhancing team-based problem-solving.
  • Advanced RAG 📚: Built in Retrieval Augmented Generation (RAG) leveraging RAG-fusion and llm re-ranking implemented via llama_index.
  • Domain Discovery 🔍: Built in domain discovery for knowledge outside of llm training data, currently bitsavers files.
  • Custom Agents 🌟: A growing list of customized agents.

WARNING ⚠️

This project leverages agents that have access to execute code locally. In addition it is based on the extended context window of gpt-4-turbo, which can be costly. Proceed at your own risk.

Installation 🛠️

  • clone the project:
git clone this repo
cd ccmp_ai
  • (optional) create a conda environment:
conda create --name ccmp_ai python=3.11
conda activate ccmp_ai
  • install dependencies
pip install -r requirements.txt
  • add environment variables
    • copy .env.example to .env and fill in your values
      cp .env.example .env
    • copy OAI_CONFIG_LIST.json.example to OAI_CONFIG_LIST.json and fill in your OPENAI_API_KEY (this will most likely be needed for the example task)
      cp OAI_CONFIG_LIST.json.example OAI_CONFIG_LIST.json

All set!! 🎉✨

NOTE:

Getting Started 🚀

python ccmp_ai.py

Wait until it finishes and it will be ready for you to ask a question.

  • If you would first like to see an example of the research/domain discovery functionality:
python example_research.py
  • If you want to see an example of the RAG functionality:
python example_rag.py

TODO 📝

  • Expand research and discovery to support more resources (such as vtda and archive.org)
  • Support chat history overflow. This would reflect a MemGPT like system where the overflow history would stay summarized in the context with relevant overflow data pulled in (via RAG) as needed.

This license is inherited from autogen-agi, along with most of this readme

License

MIT License

Copyright (c) 2023 MetaMind Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Classic/Retro Computing LLM bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages