A modern, intuitive UI for interacting with your document knowledge bases
The official frontend for DocBrain - A powerful RAG framework for building AI applications with context-aware responses
Features • Getting Started • Usage • API Documentation • Contributing • License • Current Version
DocBrain UI is a powerful frontend application for managing and interacting with document knowledge bases:
- 🔐 User Authentication: Secure login and token-based authentication
- 📚 Knowledge Base Management: Create, view, and manage your knowledge bases
- 📄 Document Management: Upload, process, and organize documents within knowledge bases
- 👥 Role-Based Access Control: Manage user permissions with Owner, Admin, and User roles
- 🔄 Knowledge Base Sharing: Easily share knowledge bases with other users in your organization
- 🧠 Intelligent Query Routing: Automatic routing of questions to the appropriate data source
- ❓ Advanced Question Handling: Support for complex questions with optimized processing
- 💬 Conversational Interface: Chat with your documents using a natural language interface
- 🔍 Source Attribution: View the exact sources used to generate responses
- 📱 Responsive Design: Works seamlessly on desktop and mobile devices
- Node.js (v18 or higher)
- npm or yarn
- A running instance of the DocBrain API server
-
Clone the repository:
git clone https://github.com/yourusername/DocBrain-UI.git cd DocBrain-UI -
Install dependencies:
npm install # or yarn install -
Create a
.envfile in the root directory with the following content:VITE_API_URL=http://localhost:8000Replace the URL with your DocBrain API server address.
-
Start the development server:
npm run dev # or yarn dev -
Open your browser and navigate to
http://localhost:5173
To build the application for production:
npm run build
# or
yarn buildThe build artifacts will be stored in the dist/ directory.
- Navigate to the login page
- Enter your email and password
- Upon successful authentication, you'll be redirected to the dashboard
- Create a new knowledge base by clicking the "New Knowledge Base" button
- Give your knowledge base a name and description
- Upload documents to your knowledge base
- Start chatting with your documents
- Select a knowledge base
- Click the "Share" button in the knowledge base details page
- Search for users by name or email
- Click on a user to grant them access to your knowledge base
- Manage existing shared users from the same interface
DocBrain UI implements a comprehensive role-based access control system:
- Owner: Has full access to all knowledge bases and can manage all users
- Admin: Has access to all knowledge bases and can manage regular users
- User: Has access only to their own knowledge bases and those shared with them
- Select a knowledge base
- Type your question in the chat input
- View the AI-generated response along with source attributions
- Continue the conversation with follow-up questions
- Ask complex, multi-part questions for comprehensive answers
- System automatically routes queries to the appropriate data source
- View confidence scores and query classification for transparency
- Receive query refinement suggestions for better results
The DocBrain UI interacts with the DocBrain API. For detailed API documentation, see api.md.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For more details, see our Contributing Guide.
This project is licensed under the MIT License - see the LICENSE file for details.
Current Version: v1.3.0
Latest release includes Advanced Question Handling, Query Routing, Improved Response Quality, and UI Enhancements.
For detailed release notes, see RELEASE_NOTES.md.
- React - A JavaScript library for building user interfaces
- TypeScript - Typed JavaScript at Any Scale
- Vite - Next Generation Frontend Tooling
- Tailwind CSS - A utility-first CSS framework
- Lucide Icons - Beautiful & consistent icons
- DocBrain - The backend RAG framework