Get up and running
This guide will walk you through setting up Filebright and uploading your first document to chat with it using AI.Configure environment
Copy the example environment file and configure your settings:Update your
.env file with the required credentials:.env
Set up the database
Run migrations to create the database schema:This creates tables for users, documents metadata, sessions, and queue jobs.
Your first document
Now that Filebright is running, let’s upload a document and chat with it.Create an account
Navigate to With body:
http://localhost:80 and create a new account. Filebright uses Laravel Sanctum for authentication.The registration endpoint is:Upload a document
From the dashboard, drag and drop a PDF or TXT file onto the upload zone, or click to browse.
The document is uploaded via the API:
The document is uploaded via the API:DocumentController.php
Maximum file size is 100MB. Supported formats: PDF and TXT.
Watch the processing
After upload, the document goes through several processing stages:
- Pending: Document is queued for processing
- Parsing: Extracting text from PDF/TXT
- Vectorizing: Generating embeddings for text chunks
- Indexing: Storing vectors in MongoDB
- Completed: Ready for chat!
documentStore.js
Start chatting
Once the document status is “Completed”, navigate to the Chat tab and ask questions about your document.Try questions like:
- “What is this document about?”
- “Summarize the main points”
- “What does it say about [specific topic]?”
- Embeds your query using the same embedding model
- Performs vector similarity search in MongoDB
- Retrieves the top 3 most relevant chunks
- Sends the chunks as context to the LLM
- Returns the AI-generated answer
RAGService.php
Using the API
You can also interact with Filebright programmatically. Here’s how to upload a document and chat via API:Next steps
Installation guide
Learn about production deployment and Docker setup
API reference
Explore all available endpoints and their parameters
Configuration
Customize AI models, vector search, and application behavior
Architecture
Deep dive into how Filebright processes and retrieves documents