Headless LLM chatbot platform built on Rasa and Langchain
Top 19.5% on sourcepulse
RasaGPT is a headless LLM chatbot platform for developers and researchers seeking to integrate large language models (LLMs) with conversational AI frameworks. It provides a reference implementation for combining Rasa, a popular open-source conversational AI framework, with Langchain and LlamaIndex for advanced retrieval and context injection, enabling custom chatbot experiences.
How It Works
RasaGPT leverages Rasa for core conversational flow and channel integration (e.g., Telegram), while Langchain and LlamaIndex handle LLM interactions, document indexing, and retrieval. User messages are routed through Rasa's NLU pipeline; unrecognized intents trigger a custom action_gpt_fallback
. This action calls a FastAPI backend, which uses LlamaIndex to query an indexed corpus (stored in PostgreSQL with pgvector for efficient similarity search) and injects relevant context into an LLM prompt for response generation.
Quick Start & Requirements
make install
(for Docker) or cd app/api && make install
(for local Python environment).make install
command automates setup, including database initialization, Rasa model training, Ngrok tunneling, and API server startup.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is explicitly stated as "far from production code" and contains potential prompt injection and security vulnerabilities. Retrieval quality is noted as "hit or miss," with significant room for optimization in indexing and LLM configuration. A TODO list includes writing tests and implementing chat history.
1 year ago
1 day