Welcome to Brain
RAG-powered search API for your applications
Brain
Brain is an AI knowledge and retrieval platform that lets you build intelligent search into your applications. Upload your documents, and query them with natural language — get both relevant excerpts and AI-generated answers.
Key Features
- Vector Search — Find semantically relevant content using embeddings
- AI Search — Get AI-generated answers grounded in your documents
- Streaming Responses — Real-time streaming for responsive UIs
- Cloudflare AutoRAG Compatible — Drop-in replacement for Cloudflare AutoRAG
- Folder Organization — Filter searches by document paths
- Custom Metadata — Attach attributes to documents and filter on them
Quick Start
1. Get your API key
Sign up at brain.aistack.run, create a project, and generate an API key.
2. Upload a document
curl -X POST https://brain.aistack.run/api/v1/documents \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.txt" \
-F "filename=docs/document.txt"3. Search with AI
curl -X POST https://brain.aistack.run/api/v1/ai-search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "What does this document say?"}'Check out the Getting Started guide for a complete walkthrough.