No description
Find a file
2023-12-28 11:20:04 +01:00
.data Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-27 23:56:07 +01:00
.github Build the docker and push 2023-12-16 15:25:32 +01:00
assets Build the docker and push 2023-12-16 15:25:32 +01:00
bin Build the docker and push 2023-12-16 15:25:32 +01:00
cognitive_architecture Test to fix deployment 2023-12-28 11:20:04 +01:00
iterations Refactor the readme and move previous iterations to sub-directories 2023-12-14 10:03:31 +01:00
level_2/tests/__pycache__ Refactor the readme and move previous iterations to sub-directories 2023-12-14 10:03:31 +01:00
.env.template Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-27 23:56:07 +01:00
.gitignore Merge branch 'main' into code_review 2023-08-25 12:12:46 +02:00
__init__.py Build the docker and push 2023-12-16 15:25:32 +01:00
api.py Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-27 23:56:07 +01:00
CONTRIBUTING.md Build the docker and push 2023-12-16 15:25:32 +01:00
docker-compose.yml Build the docker and push 2023-12-16 15:25:32 +01:00
Dockerfile Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-28 00:52:27 +01:00
entrypoint.sh Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-28 08:21:55 +01:00
LICENSE Build the docker and push 2023-12-16 15:25:32 +01:00
main.py Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-27 23:56:07 +01:00
poetry.lock Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-28 00:55:39 +01:00
pyproject.toml Add all functions for architecture to work + for regular user flows, refactor and reformat issues, add boilerplate for loading jobs logic and extend search functionalities. 2023-12-28 00:55:39 +01:00
README.md Build the docker and push 2023-12-16 15:17:25 +01:00

PromethAI-Memory

AI Applications and RAGs - Cognitive Architecture, Testability, Production Ready Apps

promethAI logo

Open-source framework for building and testing RAGs and Cognitive Architectures, designed for accuracy, transparency, and control.

promethAI forks promethAI stars promethAI pull-requests

Share promethAI Repository

Follow _promethAI Share on Telegram Share on Reddit Buy Me A Coffee


This repo is built to test and evolve RAG architecture, inspired by human cognitive processes, using Python. It's aims to be production ready, testable, but give great visibility in how we build RAG applications.

This project is a part of the PromethAI ecosystem.

The project run in iterations, from POC towards production ready code. The iterations are numbered from 0 to 7, with 0 being the simplest iteration and 7 being the most complex one. To run a specific iteration, navigate to the iteration's folder and follow the instructions in the README file. To read more about the approach and details on cognitive architecture, see the blog post: AI Applications and RAGs - Cognitive Architecture, Testability, Production Ready Apps

Keep Ithaka always in your mind. Arriving there is what youre destined for. But dont hurry the journey at all. Better if it lasts for years

Current Focus

Level 4 - Dynamic Graph Memory Manager + DB + Rag Test Manager

Scope: Use Neo4j to map the user queries into a knowledge graph based on cognitive architecture Blog post: Soon!

  • Dynamic Memory Manager -> store the data in N hierarchical stores
  • Dynamic Graph -> map the user queries into a knowledge graph
  • Classification -> classify the user queries and choose relevant graph nodes
  • Context manager -> generate context for LLM to process containing Semantic, Episodic and Vector store data
  • Postgres DB to store metadata
  • Docker
  • API

Image

Installation

Run the level 4

Make sure you have Docker, Poetry, and Python 3.11 installed and postgres installed.

Copy the .env.example to .env and fill in the variables

poetry shell

docker compose up

Run

python main.py

If you are running natively, change ENVIRONMENT to local in the .env file If you are running in docker, change ENVIRONMENT to postgres in the .env file

Run

python main.py

Or run

``` docker compose up promethai-mem ```

And send API requests add-memory, user-query-to-graph, document-to-graph-db, user-query-processor to the locahost:8000