1. Overview
We developed a fully open-source, AI-powered content chatbot designed for organizations that prioritize data privacy, scalability, and self-hosting flexibility. The system integrates the DeepSeek R1 model for intelligent query handling, the FireCrawler engine for dynamic website content extraction, and the Milvus Vector Database for efficient semantic search, all delivered through a Next.js–based, embeddable chatbot interface. Fully deployable on on-premise or cloud infrastructure, the solution enables accurate understanding and retrieval of website content while ensuring complete data control, transparency, and operational flexibility.
2. Problem Statement
Most website chatbots depend on closed APIs and external infrastructure, limiting customization, scalability, and data control. Organizations needed a privacy-first alternative that could accurately understand website content while remaining fully self-hosted and open.
- Dependence on commercial AI APIs limits customization and long-term scalability.
- Data privacy risks arise from third-party data handling and external hosting.
- Website content is often poorly understood or inaccurately retrieved by chatbots.
- Lack of open, configurable architectures restricts cost efficiency and ownership.
3. Proposed Solution
We designed an open-source, retrieval-based chatbot architecture that autonomously crawls website content, indexes it semantically, and generates grounded responses — with zero dependency on paid or closed AI services.
- Language Model: DeepSeek R1 Model for advanced natural language processing and reasoning.
- Web Crawler: FireCrawler, a Python-based configurable web crawler for website content extraction.
- Vector Database: Milvus Vector Database for storing and retrieving semantic embeddings.
- Chat Interface: Next.js Chatbot Interface is an embeddable, customizable, and user-friendly front end.
4. System Architecture
The system follows a simple pipeline: crawl website content, generate embeddings, store them in a vector database, retrieve relevant context at query time, and generate responses using DeepSeek R1 through a lightweight, embeddable chat interface.
- Web Crawler (FireCrawler)
- Configurable, Python-based crawler for scanning and extracting website content.
- Generates semantic text embeddings for each web page using DeepSeek’s language model.
- Stores embeddings in Milvus for efficient retrieval.
- Vector Database (Milvus)
- Serves as the system’s semantic memory layer.
- Stores embeddings and retrieves the most relevant results based on query similarity.
- AI Model (DeepSeek R1)
- Handles natural language understanding and response generation.
- Produces contextually accurate and data-driven answers based on Milvus results.
- Chatbot Interface (Next.js)
- Lightweight and embeddable front end for user interaction.
- Integrates seamlessly with the backend via REST or WebSocket APIs for real-time communication.
- Backend Services (Open-Source Stack)
- Built using Python/FastAPI for backend logic and data processing.
- Entirely deployable on Docker or Kubernetes for scalability and flexibility.
5. Implementation Highlights
- FireCrawler Integration: Python-based crawler configurable via URL rules and patterns.
- Open-Source Vector Database: Milvus for storing and retrieving embeddings.
- DeepSeek R1 Model: Provides reasoning-based, human-like responses.
- Customizable Next.js Interface: Can be embedded on any website or web portal.
- RegEx Rule System: Allows targeted query and response handling.
- Fully Open-Source Stack: No reliance on closed APIs or paid services.
- Self-Hostable Deployment: Supports both cloud and on-premise environments.
6. Results and Benefits
The system was deployed end-to-end using only open-source components. Organizations retained full control over data, eliminated external API costs, and achieved accurate, context-aware responses directly from live website content. The modular architecture supports horizontal scaling across crawling, retrieval, and inference layers.
- Successful End-to-End Deployment: We achieved seamless integration across all open-source components.
- Data Privacy & Ownership: 100% control over data and deployment environment.
- Scalability: Modular design allows horizontal scaling of the crawler, vector DB, and model.
- Cost Efficiency: We eliminated paid API and licensing costs.
- Accuracy & Relevance: DeepSeek R1’s reasoning capabilities enhance response quality.
- Ease of Embedding: Next.js interface can be integrated into any web page with minimal setup.
7. Conclusion & Future Scope
This project demonstrates how DeepSeek R1, Milvus, and FireCrawler combine to create a robust, private, and fully open-source AI chatbot, giving organizations complete control, transparency, and scalability while maintaining cost efficiency and high performance, resulting in an intelligent, privacy-focused system that understands, retrieves, and responds using real website content, embodying the future of open-source AI innovation.

