Quickstart

Get Almanac running in under 5 minutes and execute your first query.

Prerequisites

  • Node.js >= 24.0.0

  • pnpm >= 8.0.0

  • Docker Desktop (or Docker Engine + Docker Compose)

Installation

Clone and start Almanac with a single command:

# Clone the repository
git clone https://github.com/tryprotege/almanac.git
cd almanac

# Install dependencies
pnpm install

# Start everything (Docker databases + local dev servers)
pnpm start

This command will:

  • βœ… Start database services in Docker (MongoDB, Redis, Qdrant, Memgraph)

  • βœ… Start the backend server locally (port 3000)

  • βœ… Start the frontend UI locally (port 5173)

Initial Configuration

  1. Open the UI: Navigate to http://localhost:5173

  2. Complete Setup Wizard: On first launch, you'll see a setup screen

  3. Add Your LLM API Key:

    • Provider: OpenAI, Anthropic, or custom endpoint

    • API Key: Your LLM provider key

    • Models: Select chat, embedding, and extraction models

  4. Save and Restart: Click "Save Configuration" and restart the server

Connect Your First Data Source

Let's connect Slack as an example:

Step 1: Add Data Source

  1. Go to Data Sources page in the UI

  2. Click "Add Source"

  3. Select Slack from the marketplace

  4. Click "Connect with OAuth"

  5. Authorize Almanac in your Slack workspace

Step 2: Generate Configuration

Almanac will automatically:

  • Discover available Slack tools (channels, messages, users)

  • Classify tools as read/write/search

  • Generate an indexing configuration

  • Show you a preview of the config

Click "Save Configuration" to proceed.

Step 3: Sync Data

  1. Go to Sync page

  2. Click "Start Sync" for Slack

  3. Watch as Almanac fetches your Slack data

Step 4: Index Data

After syncing, Almanac will automatically start indexing:

Your First Query

Now you can query your Slack data! Try this in your terminal:

Or use the UI:

  1. Go to Query page

  2. Enter your question: "What did the team discuss about the API refactor?"

  3. Select mode: Mix (recommended)

  4. Click Search

Understanding the Response

  • score: Relevance score (0-1)

  • source: Which data source this came from

  • recordType: Type of record (message, document, issue, etc.)

  • rawData: The actual data from your source

Try Different Query Modes

Almanac offers 5 query modes for different use cases:

Naive Mode (Fast, Simple)

Best for: Quick keyword searches

Local Mode (Entity-Focused)

Best for: Finding information about specific people, projects, or concepts

Global Mode (Relationship-Focused)

Best for: Understanding connections and workflows

Hybrid Mode (Balanced)

Best for: Complex questions requiring both entities and relationships

Mix Mode (Best Results)

Best for: When you want the most accurate results (combines all modes + reranking)

What's Next?

You now have Almanac running with real data! Here's what to explore next:

Troubleshooting

Services won't start

Setup wizard doesn't appear

Delete the .env file and restart:

Sync fails with OAuth error

Check that your OAuth redirect URI matches:

See Configuration Guide for more details.

Next Steps

Last updated

Was this helpful?