Illuminate Your Data,
Empower Your Generative AI
The transparent, high-performance RAG platform that lets you see exactly how your AI retrieves and reasons with your data. No more black boxes.
$ npm install @brightrag/coreTrusted by developers at
The Bright Difference
RAG that you can actually understand
Built from the ground up for transparency, performance, and developer experience.
Interactive Sandbox
See RAG in action
Watch the entire retrieval process unfold in real-time. Every step is visible and explainable.
Retrieved Documents
Learn how to set up BrightRAG in your project...
Understanding how text is converted to vectors...
Combining semantic and keyword search for better results...
Retrieval Pipeline
Generated Response
To implement RAG with BrightRAG, start by installing the SDK and initializing it with your API key. Then, index your documents using the index() method. Finally, use query() to retrieve relevant context and generate responses.
Integrations
Works with your stack
Connect to your favorite databases, LLMs, and frameworks with minimal configuration.
Vector Databases
LLM Providers
Frameworks
Developer Experience
Ship faster with less code
Clean, intuitive APIs designed for developer productivity. Full TypeScript support included.
import { BrightRAG } from '@brightrag/core';
const rag = new BrightRAG({
apiKey: process.env.BRIGHTRAG_API_KEY,
});
// Index your documents
await rag.index({
documents: [
{ content: "Your document content...", metadata: { source: "docs" } }
]
});
// Query with full transparency
const result = await rag.query("How does RAG work?");
console.log(result.answer);
console.log(result.sources); // Retrieved documents
console.log(result.scores); // Relevance scores
console.log(result.reasoning); // Why these docs were chosenReady to illuminate your AI?
Join thousands of developers building transparent, production-ready RAG applications. Get started for free today.