119 lines
6.2 KiB
Markdown
119 lines
6.2 KiB
Markdown
# PromethAI-Memory
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
<a href="https://prometh.ai//#gh-light-mode-only">
|
|
<img src="assets/topoteretes_logo.png" width="10%" alt="promethAI logo" />
|
|
</a>
|
|
|
|
|
|
</p>
|
|
|
|
<p align="center"><i>Open-source framework that manages memory for AI Agents and LLM apps </i></p>
|
|
|
|
<p align="center">
|
|
<a href="https://github.com/topoteretes/PromethAI-Memory/fork" target="blank">
|
|
<img src="https://img.shields.io/github/forks/topoteretes/PromethAI-Memory?style=for-the-badge" alt="promethAI forks"/>
|
|
</a>
|
|
|
|
<a href="https://github.com/topoteretes/PromethAI-Backend/stargazers" target="blank">
|
|
<img src="https://img.shields.io/github/stars/topoteretes/PromethAI-Memory?style=for-the-badge" alt="promethAI stars"/>
|
|
</a>
|
|
<a href="https://github.com/topoteretes/PromethAI-Backend/pulls" target="blank">
|
|
<img src="https://img.shields.io/github/issues-pr/topoteretes/PromethAI-Memory?style=for-the-badge" alt="promethAI pull-requests"/>
|
|
</a>
|
|
<a href='https://github.com/topoteretes/PromethAI-Backend/releases'>
|
|
<img src='https://img.shields.io/github/release/topoteretes/PromethAI-Memory?&label=Latest&style=for-the-badge'>
|
|
</a>
|
|
|
|
</p>
|
|
|
|
[//]: # (<p align="center"><b>Follow PromethAI </b></p>)
|
|
|
|
[//]: # (<p align="center">)
|
|
|
|
[//]: # (<a href="https://twitter.com/_promethAI" target="blank">)
|
|
|
|
[//]: # (<img src="https://img.shields.io/twitter/follow/_promethAI?label=Follow: _promethAI&style=social" alt="Follow _promethAI"/>)
|
|
|
|
[//]: # (</a>)
|
|
|
|
[//]: # (<p align="center">)
|
|
|
|
[//]: # (<a href="https://prometh.ai" target="_blank"><img src="https://img.shields.io/twitter/url?label=promethAI Website&logo=website&style=social&url=https://github.com/topoteretes/PromethAI-Memory"/></a>)
|
|
|
|
[//]: # (<p align="center">)
|
|
|
|
[//]: # (<a href="https://www.youtube.com/@_promethAI" target="_blank"><img src="https://img.shields.io/twitter/url?label=Youtube&logo=youtube&style=social&url=https://github.com/topoteretes/PromethAI-Memory"/></a>)
|
|
|
|
[//]: # (</p>)
|
|
|
|
|
|
<p align="center"><b>Share promethAI Repository</b></p>
|
|
|
|
<p align="center">
|
|
|
|
<a href="https://twitter.com/intent/tweet?text=Check%20this%20GitHub%20repository%20out.%20promethAI%20-%20Let%27s%20you%20easily%20build,%20manage%20and%20run%20useful%20autonomous%20AI%20agents.&url=https://github.com/topoteretes/PromethAI-Backend-Backend&hashtags=promethAI,AGI,Autonomics,future" target="blank">
|
|
<img src="https://img.shields.io/twitter/follow/_promethAI?label=Share Repo on Twitter&style=social" alt="Follow _promethAI"/></a>
|
|
<a href="https://t.me/share/url?text=Check%20this%20GitHub%20repository%20out.%20promethAI%20-%20Let%27s%20you%20easily%20build,%20manage%20and%20run%20useful%20autonomous%20AI%20agents.&url=https://github.com/topoteretes/PromethAI-Backend" target="_blank"><img src="https://img.shields.io/twitter/url?label=Telegram&logo=Telegram&style=social&url=https://github.com/topoteretes/PromethAI-Backend" alt="Share on Telegram"/></a>
|
|
<a href="https://api.whatsapp.com/send?text=Check%20this%20GitHub%20repository%20out.%20promethAI%20-%20Let's%20you%20easily%20build,%20manage%20and%20run%20useful%20autonomous%20AI%20agents.%20https://github.com/topoteretes/PromethAI-Backend"><img src="https://img.shields.io/twitter/url?label=whatsapp&logo=whatsapp&style=social&url=https://github.com/topoteretes/PromethAI-Backend" /></a> <a href="https://www.reddit.com/submit?url=https://github.com/topoteretes/PromethAI-Backend&title=Check%20this%20GitHub%20repository%20out.%20promethAI%20-%20Let's%20you%20easily%20build,%20manage%20and%20run%20useful%20autonomous%20AI%20agents.
|
|
" target="blank">
|
|
<img src="https://img.shields.io/twitter/url?label=Reddit&logo=Reddit&style=social&url=https://github.com/topoteretes/PromethAI-Backend" alt="Share on Reddit"/>
|
|
</a> <a href="mailto:?subject=Check%20this%20GitHub%20repository%20out.&body=promethAI%20-%20Let%27s%20you%20easily%20build,%20manage%20and%20run%20useful%20autonomous%20AI%20agents.%3A%0Ahttps://github.com/topoteretes/PromethAI-Backend" target="_blank"><img src="https://img.shields.io/twitter/url?label=Gmail&logo=Gmail&style=social&url=https://github.com/topoteretes/PromethAI-Backend"/></a> <a href="https://www.buymeacoffee.com/promethAI" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="23" width="100" style="border-radius:1px"></a>
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|

|
|
|
|
## The Motivation
|
|
|
|
Browsing the database of theresanaiforthat.com, we can observe around [7000 new, mostly semi-finished projects](https://theresanaiforthat.com/) in the field of applied AI, whose development is fueled by new improvements in foundation models and open-source community contributions.
|
|
|
|
It seems it has never been easier to create a startup, build an app, and go to market… and fail.
|
|
|
|
AI apps currently being pushed out still mostly feel and perform like demos.
|
|
|
|
To address this issue, [dlthub](https://dlthub.com/) and [prometh.ai](http://prometh.ai/) will collaborate on productionizing a common use-case, progressing step by step. We will utilize the LLMs, frameworks, and services, refining the code until we attain a clearer understanding of what a modern LLM architecture stack might entail.
|
|
|
|
We go on a journey and propose a new way to reason about Language Architecture for Agents based on cognitive sciences.
|
|
|
|
#### Read more on our blog post [prometh.ai](http://prometh.ai/promethai-memory-blog-post-one)
|
|
|
|
#### Or check this [Princeton paper](https://arxiv.org/abs/2309.02427) released after our demo
|
|
|
|
|
|
## PromethAI-Memory Repo Structure
|
|
|
|
The repository contains a set of folders that represent the steps in the evolution of the modern data stack from POC to production
|
|
|
|
#### Level 1 - CMD script to process PDFs
|
|
We introduce the following concepts:
|
|
1. Structured output with Pydantic
|
|
2. CMD script to process custom PDFs
|
|
|
|
#### Level 2 - Memory Manager implemented in Python
|
|
|
|
We introduce the following concepts:
|
|
1. Long Term Memory
|
|
2. Short Term Memory
|
|
3. Episodic Buffer
|
|
4. Attention Modulators
|
|
|
|
The code at this level contains:
|
|
1. Simple PDF ingestion
|
|
2. FastAPI
|
|
3. Docker Image
|
|
4. Memory manager
|
|
5. Langchain-based Agent Simulator
|
|
6. Data schema
|
|
|
|
## How to use
|
|
|
|
Each of the folders contains a README to get started.
|