Installation Guide¶
This guide walks you through installing Poolula Platform on your local machine.
Prerequisites¶
Before installing, ensure you have:
1. Python 3.13+¶
Check your Python version:
If you need to install Python 3.13:
Download from python.org and install.
2. uv Package Manager¶
Install uv (recommended over pip):
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or with pip
pip install uv
# Or with Homebrew
brew install uv
Verify installation:
3. Anthropic API Key¶
- Sign up at console.anthropic.com
- Create an API key
- Save it securely (you'll need it in step 4 below)
Installation Steps¶
1. Clone the Repository¶
cd /path/to/your/projects
git clone https://github.com/dagny099/poolula-platform.git
cd poolula-platform
2. Install Dependencies¶
Install all required Python packages:
# Install core dependencies
uv sync
# Install with RAG (chatbot) dependencies
uv sync --group rag
# Install with documentation dependencies (optional)
uv sync --group docs
# Install with development dependencies (optional)
uv sync --group dev
3. Set Up Environment Variables¶
Create .env file from template:
Edit .env and add your Anthropic API key:
# Required
ANTHROPIC_API_KEY=your-api-key-here
# Optional
DATABASE_URL=sqlite:///poolula.db
LOG_LEVEL=INFO
Keep your API key secret
Never commit .env to git. The .gitignore file already excludes it.
4. Initialize Database¶
Run database migrations:
Expected output:
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> abc123def456, Initial schema
5. Verify Installation¶
Check that everything works:
# Test database connection
uv run python -c "from core.database.connection import check_connection; print('✅ Database OK' if check_connection() else '❌ Database Failed')"
# Test API key
uv run python -c "import os; from dotenv import load_dotenv; load_dotenv(); print('✅ API Key Set' if os.getenv('ANTHROPIC_API_KEY') else '❌ API Key Missing')"
Both tests should show ✅.
Optional Setup¶
Seed Sample Data¶
Create sample property and transactions:
# Seed property from YAML
uv run python scripts/seed_database.py --initial
# Import Airbnb transactions (if you have the CSV)
uv run python scripts/import_airbnb_transactions.py \
--csv data/airbnb_export.csv \
--property-id <property-uuid-from-seed> \
--dry-run # Preview first
Ingest Documents¶
Place your business documents in documents/ directory, then:
# Ingest all documents
uv run python scripts/ingest_documents.py
# Or ingest specific directory
uv run python scripts/ingest_documents.py \
--directory documents/formation
Seed Obligations¶
Create common compliance deadlines:
Running the Platform¶
Start the API Server¶
Expected output:
Access the Frontend¶
Open your browser to:
You should see the Poolula Platform chatbot interface with 4 persona sections.
Use the CLI¶
For command-line access:
This opens an interactive chatbot session where you can type questions.
Troubleshooting¶
Python Version Issues¶
Error: Python 3.13 not found
Make sure you have Python 3.13+ installed:
If usingpyenv:
uv Sync Errors¶
Error: uv sync fails with dependency conflicts
Try updating uv:
Database Issues¶
Error: Could not connect to database
Check if SQLite is accessible:
# Create test database
sqlite3 test.db "CREATE TABLE test (id INTEGER);"
# If successful, remove test file
rm test.db
If SQLite works, check your DATABASE_URL in .env.
Error: Alembic migration fails
Reset the database:
API Key Issues¶
Error: ANTHROPIC_API_KEY not set
Make sure .env file exists and contains your key:
If empty, edit .env:
Error: Invalid API key or authentication failed
Your API key may be incorrect or expired. Generate a new one at console.anthropic.com.
ChromaDB Issues¶
Error: ChromaDB import fails
ChromaDB requires C++ compiler. Install build tools:
Verification Checklist¶
Before proceeding, verify:
- Python 3.13+ installed
- uv package manager installed
- Dependencies installed with
uv sync --group rag -
.envfile created with ANTHROPIC_API_KEY - Database migrations run successfully
- API server starts without errors
- Frontend accessible at http://localhost:8082
- CLI chatbot works
Next Steps¶
Installation complete! Now you can:
- Quick Start Guide - Run your first queries
- Chatbot Guide - Learn to use the AI assistant
- Import Data - Add your business data
Getting Help¶
If you encounter issues not covered here:
- Check the FAQ
- Review the Architecture documentation
- Open a GitHub Issue
Installation successful? → Quick Start Guide