This is the backend for the entire Amurex project. You can use it to host your own backend instance of Amurex.
- Python 3.11
- Redis server
- Docker (optional)
- Required API keys:
- OpenAI API key
- Groq API key
- Supabase credentials
- MixedBread AI key
-
Create a new project on Supabase
-
Create the following tables in your Supabase database:
You can find the SQL for this table in supabase/migrations/20241201195715_meetings.sql
-
Set up Storage:
- Create a new bucket named
meeting_context_files
- Set the bucket's privacy settings according to your needs
- Make sure to configure CORS if needed
- Create a new bucket named
-
Get your credentials:
- Go to Project Settings > API
- Copy your
Project URL
(this will be your SUPABASE_URL) - Copy your
anon/public
key (this will be your SUPABASE_ANON_KEY)
Create a .env
file in the root directory with the following variables:
OPENAI_API_KEY=your_openai_key
GROQ_API_KEY=your_groq_key
SUPABASE_URL=your_project_url
SUPABASE_ANON_KEY=your_anon_key
REDIS_USERNAME=your_redis_username
REDIS_URL=your_redis_host
REDIS_PASSWORD=your_redis_password
REDIS_PORT=your_redis_port
MXBAI_API_KEY=your_mxbai_api_key
RESEND_API_KEY=your_resend_api_key
RESEND_NOREPLY=your_resend_noreply
CLIENT_MODE=ONLINE #set LOCAL to run local Ollama instead of OpenAI and Groq API
- Change directory to
server
:
cd server
- Create a virtual environment:
python -m venv venv
- Install dependencies:
pip install -r requirements.txt
3 Start the application
python index.py
- Clone the repository
git clone https://github.com/thepersonalaicompany/amurex-backend
- Change directory to
amurex-backend
:
cd amurex-backend
-
Edit the .env file
Add the various keys for the service
vim .env
- Build the Docker image:
docker build -t amurex-backend .
- Run the Docker container:
docker run -d --name amurex-backend --restart unless-stopped amurex-backend:latest
Alternatively, use docker compose:
docker compose up
Made with ❤️ for better meetings life