AI-powered RAG platform for analyzing company files, finance reports, and books.
Install uv, then run uv sync.
curl -LsSf https://astral.sh/uv/install.sh | shAlternatively, you can use pip:
pip install uvThen install dependencies:
uv sync.venv\Scripts\activate$ cp .env.example .envSet your environment variables in the .env file. Like OPENAI_API_KEY value.
To run the project in development mode, use the following command:
uv run fastapi dev main.pyTo run on a specific port (e.g., 7070):
uv run fastapi dev main.py --port 7070$ cd docker
$ cp .env.example .envUpdate .env with your credentials
$ cd docker
$ docker compose up -dTo install Ruff:
uv tool install ruff@latestTo run the check:
uv run ruff checkTo format code:
uv run ruff formatTo add autoflake to the project:
uv add autoflakeTo remove unused imports:
uv run autoflake --in-place --recursive --remove-all-unused-imports .To remove autoflake from the project:
uv remove autoflakeuv run black .uv run isort .If you need to wipe your Docker environment clean, use these commands in your Windows Command Prompt (CMD).
FOR /f "tokens=*" %i IN ('docker ps -aq') DO docker stop %iStops every active container currently running on your system.
FOR /f "tokens=*" %i IN ('docker ps -aq') DO docker rm %iDeletes all containers (they must be stopped first).
FOR /f "tokens=*" %i IN ('docker images -q') DO docker rmi %iDeletes all downloaded or built Docker images.
FOR /f "tokens=*" %i IN ('docker volume ls -q') DO docker volume rm %iDeletes all persistent data volumes managed by Docker.
docker system prune --allA built-in Docker command that removes all unused containers, networks, and images (dangling and unreferenced) in one go.