Skip to content

Update-For-Integrated-Business-AI/elgenie-brian

Repository files navigation

Brian

This project is the genie's brain called Brian. Brian receives stimulus from the user and respond accordingly.

What's Brian?

Brian has the following traits:

  1. Keeps a short conversational memory (doesn't store the whole conversation --should be stored somewhere else)
  2. Routes conversation to the relevant personality (powerup)

The brian is composed of following parts:

  1. Memory: conversations persistent memory.
  2. Powerups: personalities/specializations/skills.
  3. Chains: Sequences of interactions with models and system to perform a task.
  4. Pricing: Calculates cost of responding the stimulus.
  5. API endpoints: An API access to 3rd party integrators.

How to run Brian

Brian is made on top of a Flask app so you'd run it like you'd run a Flask app:

  1. clone the repo.
  2. create a virtual environment
  3. install dependencies: pip install -r requirements.txt or poetry install

Now you can run the app in dev mode:

flask --debug --app genie run

you can remove --debug tag if you don't like to see debug information.

Normally the server runs on localhost:5000 You can access OpenAPI3 tools via

http://localhost:5000/openapi

How to run Tests

Brian uses pytest to run its test suite. To run all tests run the following:

python -m pytest -v -s

About

Brian is the core intelligence engine behind the Genie. It processes user input, routes conversations to the right “powerup” (personality/skill), maintains short-term memory, and exposes a clean API for integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors