AI server with Langchain
- Python 3.12 or higher
- Poetry (Python package manager)
- Docker and Docker Compose
- Clone the repository
git clone https://github.com/WritelyForWriters/AI.git
cd ai- Install dependencies with Poetry
poetry install- Set up environment variables
cp .env.example .env
# Edit .env with your configuration- Build and run with Docker Compose
docker compose -f docker-compose-dev.yml up --buildThe API server will be available at http://localhost:8000
This project uses several tools to maintain code quality:
- Ruff for linting and formatting
- MyPy for type checking
- Pre-commit hooks for automated checks
To set up pre-commit hooks:
poetry run pre-commit installPlease read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.