Skip to content

stephenc222/example-system-of-experts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example System of Experts

This example project demonstrates how AI Assistants, running in separate docker containers, can make decisions on how to communicate both with each other and end users, implemented for a simple "Personal Financial Assistant" system of experts.

For a detailed overview and explanation of this system of experts, check out my companion blog post.

Prerequisites

You need an OpenAI API key and a free demo API key from Cohere by creating a free account.

Create a .env file at the root of this repo, replacing the following with your own API keys:

RABBITMQ_HOST=rabbitmq
RABBITMQ_USERNAME=user
RABBITMQ_PASSWORD=password
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
COHERE_API_KEY=YOUR_COHERE_API_KEY

You also need to have Docker Compose installed as well.

Getting Started

To start this example project, from the root of this repository just:

docker compose up --build

Once all AI expert docker containers have finished connecting to RabbitMQ, go to http://localhost:3000 for a minimal chat web app, demonstrating how the experts can communicate with each other to accomplish a task. This can take between 15-30 seconds for all experts to fully connect.

About

Example using distributed OpenAI's Assistants and Cohere's Generate model powering a system of experts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published