PromethAI-Backend is an open-source AGI project based on Python, aimed at providing AI agents to help users navigate decisions, obtain personalized goals, and execute them. The project was developed by topoteretes, and its work has now been integrated into the new product cognee.
Purpose
PromethAI recommends choices based on the user's goals and preferences, and can modify recommendations based on user feedback. The current focus is on the food domain, but the system can be extended to any domain. It is optimized for autonomous agents, provides a personalized experience for each user, and introduces decision trees to help users navigate and decide on solutions.
Main Capabilities
- Personalized recommendations: recommend choices based on user goals and preferences.
- Feedback adjustment: modify recommendations based on user feedback.
- Decision trees: help users navigate and decide on solutions.
- Asynchronous operation: the system executes asynchronously.
- Task automation: supports automating tasks and executing decisions.
- Multi-vector database support: supports multiple vector databases through Langchain.
How to Use
- Clone the repository:
git clone https://github.com/topoteretes/PromethAI-Backend-Backend.gitor download it in zip format from the GitHub page. - Enter the directory:
cd PromethAI-Backend, copy.env.templateand rename it to.env. - In the
.envfile, enter your OpenAI API Key, Google key, and custom search engine ID (do not add quotes or spaces). - Make sure Docker and Docker Compose are installed on the system.
- After starting Docker Desktop, run in the promethai directory:
docker-compose up promethai --build. - Open a browser and visit
localhost:3000to view the running promethAI.
Alternatively, after adding credentials to the .env file, start the application with the following command:
docker-compose build promethai && docker-compose up promethai
API access is performed through CURL requests, and all endpoints receive JSON-formatted payloads and return JSON-formatted responses.
Workflow
Each time a user queries the AI, the following steps occur:
- The AI vectorizes the query and stores it in the Pinecone vector database.
- The AI searches memory for memories and past queries relevant to the current query.
- The AI thinks about the action to take.
- The AI stores the thought from step 3.
- Based on the thought from step 3 and the relevant memories from step 2, the AI generates output.
- The AI stores the current query and its answer in the Pinecone vector database memory.
Applicable Scenarios
Suitable for scenarios that require personalized decision assistance, such as food recommendations, and can also be extended to other domains. Suitable for developers who want to build autonomous agent applications.
Limitations
- The project is a work in progress and provides no warranties, express or implied. Use at your own risk, including data loss, system failure, etc.
- Using the GPT-4 language model may incur significant costs due to token consumption, and users must monitor token usage and manage costs themselves.
- Due to its experimental nature, PromethAI may generate content or behavior that does not conform to real-world business norms or legal obligations, and users must ensure that actions based on the output comply with relevant laws, regulations, and ethical standards.
- The creators and contributors are not responsible for any losses, damages, or adverse effects.
- By using it, you agree to protect, defend, and hold harmless the creators, contributors, and related parties from any claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees).