Skip to content

thepersonalaicompany/amurex-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amurex Backend

License Chrome Web Store Twitter Follow Discord

Amurex Backend

This is the backend for the entire Amurex project. You can use it to host your own backend instance of Amurex.

Prerequisites

  • Python 3.11
  • Redis server
  • Docker (optional)
  • Required API keys:
    • Supabase credentials
    • OpenAI API key (optional if using CLIENT_MODE=LOCAL)
    • Groq API key (optional if using CLIENT_MODE=LOCAL)
    • MixedBread AI key (optional if using CLIENT_MODE=LOCAL)

Note: When using CLIENT_MODE=LOCAL, you'll need to:

  • Install Ollama for local model inference
  • Install fast-embed for local embeddings generation

Supabase Setup

  1. Create a new project on Supabase

  2. Create the following tables in your Supabase database:

Meetings Table

You can find the SQL for this table in supabase/migrations/20241201195715_meetings.sql

  1. 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
  2. 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:

# Required
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
RESEND_API_KEY=your_resend_api_key
RESEND_NOREPLY=your_resend_noreply

# Optional if CLIENT_MODE=LOCAL
OPENAI_API_KEY=your_openai_key
GROQ_API_KEY=your_groq_key
MXBAI_API_KEY=your_mxbai_api_key

# Mode Selection
CLIENT_MODE=ONLINE #set LOCAL to run local Ollama instead of OpenAI and Groq API and fast-embed instead of mixedbread

Installation

Option 1: Local Installation

  1. Change directory to server:
cd server
  1. Create a virtual environment:
python -m venv venv
  1. Install dependencies:
pip install -r requirements.txt

3 Start the application

python index.py

Option 2: Docker

  1. Clone the repository
git clone https://github.com/thepersonalaicompany/amurex-backend
  1. Change directory to amurex-backend:
cd amurex-backend
  1. Edit the .env file

    Add the various keys for the service

vim .env
  1. Build the Docker image:
docker build -t amurex-backend .
  1. 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

About

This is the backend for the entire Amurex project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •