cognee/level_2
2023-08-25 18:44:20 +02:00
..
bin added git actions 2023-08-25 12:38:41 +02:00
personal_receipts/2017/de/public_transport added level 2 initial code 2023-08-17 17:30:40 +02:00
schema_registry added level 2 initial code 2023-08-17 17:30:40 +02:00
tests Updates to the api + refactor 2023-08-25 12:11:12 +02:00
.env.template added level 2 initial code 2023-08-17 17:30:40 +02:00
api.py Updates to the api + refactor 2023-08-25 11:48:43 +02:00
docker-compose.yml added level 2 initial code 2023-08-17 17:30:40 +02:00
Dockerfile added level 2 initial code 2023-08-17 17:30:40 +02:00
entrypoint.sh added level 2 initial code 2023-08-17 17:30:40 +02:00
level_2_pdf_vectorstore__dlt_contracts.py Updates to the api + refactor 2023-08-25 11:48:43 +02:00
poetry.lock Added fix 2023-08-23 19:59:12 +02:00
pyproject.toml Added fix 2023-08-23 19:59:12 +02:00
Readme.md Updates to the api + refactor 2023-08-25 11:48:43 +02:00

PromethAI Memory Manager

Description

Initial code lets you do three operations:

  1. Add to memory
  2. Retrieve from memory
  3. Structure the data to schema and load to duckdb

#How to use

Installation

docker compose build promethai_mem

Run

docker compose up promethai_mem

Usage

The fast API endpoint accepts prompts and stores data with the help of the Memory Manager

The types of memory are: Episodic, Semantic, Buffer

Endpoint Overview The Memory API provides the following endpoints:

  • /[memory_type]/add-memory (POST)
  • /[memory_type]/fetch-memory (POST)
  • /[memory_type]/delete-memory (POST)
  • /available-buffer-actions (GET)
  • /run-buffer (POST)
  • /buffer/create-context (POST)

Here is a payload example:

{
  "payload": {
    "user_id": "681",
    "session_id": "471",
    "model_speed": "slow",
    "prompt": "I want ",
    "pdf_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    "params": {
        "version": "1.0",
        "agreement_id": "AG123456",
        "privacy_policy": "https://example.com/privacy",
        "terms_of_service": "https://example.com/terms",
        "format": "json",
        "schema_version": "1.1",
        "checksum": "a1b2c3d4e5f6",
        "owner": "John Doe",
        "license": "MIT",
        "validity_start": "2023-08-01",
        "validity_end": "2024-07-31"
    }
  }
}