Contextual search engine built on graph + vector retrieval.
ambala is a hybrid retrieval system that combines semantic similarity with graph traversal to produce context-aware results.
Instead of treating search as a flat nearest-neighbor problem, Ambala evaluates relevance within a structured graph.
This project focuses on:
- Combining vector similarity with graph traversal
- Supporting context-constrained queries
- Making retrieval explainable
- HelixDB → graph + vector storage
- TanStack Start → API layer + frontend
- tRPC → type-safe API
- Gemini → text embeddings (via Vercel AI SDK)
curl -sSL "https://install.helix-db.com" | bash
helix installcd ambala
helix initThis creates db/schema.hx and db/queries.hx which are already configured.
Create .env in apps/web/:
CORS_ORIGIN=http://localhost:3001
GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key
HELIX_DB_URL=http://localhost:6969
Get a Google API key from https://aistudio.google.com/app/apikey
helix devThis starts HelixDB at http://localhost:6969 and deploys the schema/queries.
bun run dev- Open
http://localhost:3001 - Upload a CSV file with messages in format:
sender,datetime,content - Search messages semantically (e.g., "when did mahek say hello")
MIT