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 startThis 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
Open the UI: Navigate to http://localhost:5173
Complete Setup Wizard: On first launch, you'll see a setup screen
Add Your LLM API Key:
Provider: OpenAI, Anthropic, or custom endpoint
API Key: Your LLM provider key
Models: Select chat, embedding, and extraction models
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
Go to Data Sources page in the UI
Click "Add Source"
Select Slack from the marketplace
Click "Connect with OAuth"
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
Go to Sync page
Click "Start Sync" for Slack
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:
Go to Query page
Enter your question: "What did the team discuss about the API refactor?"
Select mode: Mix (recommended)
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:
Add More Data Sources - Connect GitHub, Notion, or build custom integrations
Understand Query Modes - Deep dive into when to use each mode
See Examples - Real-world use cases and tutorials
Learn LightRAG - Understand how the retrieval system works
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
π Installation Guide - Production deployment and advanced setup
βοΈ Configuration - Environment variables and tuning
π― Examples - Real-world use cases
Last updated
Was this helpful?