Skip to content

Quick Start

This guide will help you get started with Lattice—whether you’re an end user looking to run the app or a developer integrating with the API.

Lattice API Access: $90 one-time fee

Includes:

  • Full access to Lattice app and API
  • Run locally on your laptop
  • Host on your private cloud
  • No recurring subscription fees
  • All future updates included

Visit latticelab.io to purchase and receive access to the private GitHub repository.


Before you begin, ensure you have:

  • Git — For cloning the repository
  • Docker & Docker Compose — For PostgreSQL database
  • Python 3.11+ — For the backend server
  • Node.js 18+ — For the frontend application
  • An API key from at least one AI provider (Anthropic, OpenAI, Google, or Ollama)

After purchasing, you’ll receive access to the private GitHub repository.

Terminal window
git clone https://github.com/navam-io/lattice.git
cd lattice

Lattice uses PostgreSQL with pgvector for vector embeddings. Start the database using Docker Compose:

Terminal window
docker compose up -d

This starts a PostgreSQL 16 container with:

  • Container name: lattice-postgres
  • Database: lattice
  • User/Password: lattice / lattice_dev
  • Port: 5432

Verify the container is running:

Terminal window
docker compose ps
Terminal window
cd backend
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -e ".[dev]"

Create a .env file in the backend directory:

Terminal window
cd backend
touch .env

Add your configuration:

Terminal window
# Required
ANTHROPIC_API_KEY=sk-ant-...
# Optional providers
OPENAI_API_KEY=sk-...
GOOGLE_API_KEY=AIza...
# Database (default Docker Compose settings)
DATABASE_URL=postgresql+asyncpg://lattice:lattice_dev@localhost:5432/lattice
# Application
ENVIRONMENT=development
DEBUG=true

Apply the database schema:

Terminal window
cd backend
alembic upgrade head
Terminal window
cd backend
uvicorn main:app --reload --port 8000

The API is now available at http://localhost:8000.

Verify it’s running:

Terminal window
curl http://localhost:8000/api/health

In a new terminal:

Terminal window
cd frontend
npm install
Terminal window
npm run dev

Access the app at http://localhost:3000 with hot reload enabled.


Once installation is complete, navigate to http://localhost:3000 in your browser.

  1. Create a Workspace

    Click the workspace selector and choose + New Workspace. Give it a descriptive name that reflects your research focus, like “Claude Sonnet Evaluation” or “RAG Pipeline Comparison”.

  2. Add Your First Sources

    Click the + button in the Sources panel to add knowledge sources:

    • URL — Paste documentation links, pricing pages, or blog posts
    • PDF — Upload research papers, model cards, or internal docs
    • GitHub — Connect repositories for code analysis
  3. Start Chatting in the Lab

    Once your sources are indexed, ask questions in the Lab panel:

    What are the key differences between Claude Sonnet and GPT-4
    for production RAG applications?

    Lattice will search your sources and provide grounded responses with citations.

  4. Save Artifacts to Studio

    When the AI generates useful tables, comparisons, or analyses, click Save to Studio to preserve them for later reference.

Don’t want to curate sources manually? Use a Blueprint to get started instantly:

  1. Navigate to Blueprints in the navigation
  2. Browse available blueprints by vendor or use case
  3. Click Apply to import curated sources, scenarios, and stacks
  4. Start researching immediately with pre-configured knowledge

Lattice API is designed for local self-hosted deployment and does not require authentication. All endpoints are accessible without credentials.

EndpointDescription
http://localhost:8000Local development

Once the backend is running, access interactive API documentation at:

  • Swagger UI: http://localhost:8000/docs
  • OpenAPI Spec: http://localhost:8000/openapi.json

Lattice requires API keys for AI providers (Anthropic, OpenAI, etc.) which are configured via:

  • Settings Panel — Configure keys through the app UI
  • API Endpoint — Programmatically manage keys via /api/api-keys
Terminal window
curl http://localhost:8000/api/workspaces

Verify the API is running:

Terminal window
# Basic health check
curl http://localhost:8000/api/health
# Readiness probe (includes database check)
curl http://localhost:8000/api/health/ready

Terminal window
# Check if PostgreSQL container is running
docker compose ps
# View container logs
docker compose logs postgres
# Restart the database
docker compose restart postgres
Terminal window
# Kill processes on specific ports
lsof -ti:3000 | xargs kill -9 # Frontend
lsof -ti:8000 | xargs kill -9 # Backend
Terminal window
# Backend - reinstall dependencies
cd backend && pip install -e ".[dev]" --force-reinstall
# Frontend - clean install
cd frontend && rm -rf node_modules package-lock.json && npm install

Now that you’re set up: