git clone https://github.com/iCog-Labs-Dev/MeTTa-AI-Assistant
cd MeTTa-AI-Assistant/Backendcp .env.example .env
# Update .env with your valuesBefore running the application, you need to ingest documents:
docker compose run --rm api python -m app.scripts.ingest_docsYou can also use the --force flag to re-ingest documents:
docker compose run --rm api python -m app.scripts.ingest_docs --forceThis only needs to be done once (unless you want to re-ingest with --force).
docker-compose up --buildThis will start the FastAPI server on http://localhost:8000.
Before running the application locally, you need to ingest documents:
python -m app.scripts.ingest_docsYou can also use the --force flag to re-ingest documents:
python -m app.scripts.ingest_docs --force# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Start FastAPI server
python -m run.py
Note: Remove the --reload flag in production.