Back to Portfolio

AI Knowledge Chatbot (NestJS + Ollama + RAG)

AI chatbot platform that allows organizations to upload documents and interact with them using natural language. The system uses Retrieval-Augmented Generation (RAG) with a local LLM powered by Ollama, enabling private and cost-efficient AI assistants that can be embedded into existing applications via a lightweight chat widget.

March 9, 2026
0 views
 1
 2
Video 3

AI chatbot platform that allows organizations to upload documents and interact with them using natural language. The system uses Retrieval-Augmented Generation (RAG) with a local LLM powered by Ollama, enabling private and cost-efficient AI assistants that can be embedded into existing applications via a lightweight chat widget.

This project is a prototype AI chatbot platform designed to provide intelligent assistance based on organization-specific documents. The system implements a Retrieval-Augmented Generation (RAG) architecture that allows users to upload knowledge documents and interact with them through a natural language interface.

 

The backend is built using NestJS, providing a modular and scalable API for document management, indexing, and AI interaction. Documents are automatically processed, chunked, and converted into embeddings using a local embedding model, then stored in a vector index. When a user asks a question, the system retrieves the most relevant document chunks and sends them as context to a local large language model (LLM) running via Ollama.

 

Key features include:

 

  • Multi-tenant architecture with app-based knowledge isolation
  • Document management system (upload, replace, delete, reindex)
  • Support for PDF and text knowledge documents
  • Retrieval-Augmented Generation (RAG) pipeline
  • Streaming AI responses for real-time chat experience
  • Embedded chat bubble widget that can be integrated into external web applications
  • Widget builder interface for generating customizable chat plugins
  • Fully local AI stack to reduce dependency on third-party AI APIs

 

 

The platform is designed to serve as a product AI assistant that can be integrated into enterprise applications, enabling users to ask questions about product features, documentation, and operational workflows.

 

This project demonstrates practical experience in:

 

  • AI system integration
  • local LLM deployment
  • vector search pipelines
  • multi-tenant backend architecture
  • embeddable AI widgets
  • real-time streaming interfaces

 

🛠️Technologies Used

Nest.jsTypeScriptOllamaQwen / local LLMEmbedding modelRetrieval-Augmented Generation (RAG)PDF parsingText chunkingVector similarity searchVanilla JavaScriptStreaming UI (SSE)Embedded chat widget

Project Links

Project Details

Created:March 9, 2026
Views:0
Priority:#1

About the Developer

Nandang Hermawan

Nandang Hermawan

Senior Fullstack Developer

Full Stack Developer with over 9 years of experience leading technical projects from concept to deployment. Skilled in both backend and frontend development, I enjoy collaborating with cross-functional teams to deliver solutions that drive real business value.