LLM Frontend RAG Support
2025-02-289 turns15,794 charsgpt-4o, gpt-4o-mini, o3-mini⑂ 1 fork(s)
Summary
User wants to use a GitHub repo to build an LLM desktop frontend with RAG support for their book project.
Messages
explain how: https://github.com/kliewerdaniel/ITB02 can answer this question: Desperate for a Good LLM Desktop Front End
Question | Help
My use case is that I’m writing a book that consists of conversations with multiple LLMs. I want to keep the entire manuscript in context so that the conversations can build on each other. ChatGPT’s context limits through are making this impossible and I will bump into Claude’s before the book is done. The best option for me would be a good front end that can connect with multiple cloud-hosted LLMs and that supports good RAG locally. Chat Markdown exports is also highly desireable.
MSTY mostly fits the bill but its hard limit on answer length is a deal killer. I am mostly non-technical, so trying to install LibreChat turned out to be more than I could handle.
I don’t need a lot of frills. I just need to be able to continue to converse with the LLMs I’ve been using, as I have been, but with high-quality RAG. I’ve looked into installing just a vector database and connecting it to the ChatGPT and Claude clients, but that is also technically daunting for me. I don’t need a front end per se; I need a way to keep my manuscript in context as it grows in size. A desktop front end that’s easy to install, doesn’t limit the LLM’s responses, and has good RAG support seems like something that should exist.
Does anybody have any good suggestions?
The GitHub repository [kliewerdaniel/ITB02](https://github.com/kliewerdaniel/ITB02) offers a **Multimodal Story Generation System** that transforms visual inputs into structured narratives using advanced AI technologies. This system combines computer vision and large language models (LLMs) to generate dynamic, multi-chapter stories from images.
**Key Features:**
- **Image Analysis:** Extracts narrative elements from visual inputs.
- **Story Generation:** Utilizes LLMs to craft coherent and contextually rich stories.
- **Chapter Structuring:** Organizes content into multiple chapters for depth and engagement.
- **User Interface:** Provides an interactive frontend for seamless user experience.
**How ITB02 Addresses Your Needs:**
While ITB02 is primarily designed for generating stories from images, its architecture demonstrates the integration of LLMs with a user-friendly frontend, which is pertinent to your requirements. Here's how it aligns with your needs:
1. **Integration with Multiple Cloud-Hosted LLMs:**
- *Potential Adaptation:* Although ITB02 is configured for specific LLMs, its modular design suggests that, with technical adjustments, it could interface with various cloud-hosted LLMs.
2. **Maintaining Extensive Context:**
- *Current Limitation:* ITB02 processes individual images and doesn't inherently support maintaining a growing manuscript in context.
- *Possible Enhancement:* Modifying the system to handle and retain large textual contexts would require significant development effort.
3. **Retrieval-Augmented Generation (RAG) Support:**
- *Implementation Status:* The existing system doesn't incorporate RAG techniques.
- *Feasibility:* Incorporating RAG would involve integrating external data retrieval mechanisms, which is a complex task.
4. **Ease of Installation and Use:**
- *Technical Requirements:* ITB02 utilizes technologies like Docker, Python 3.11+, and Ollama, which might pose challenges for non-technical users.
- *User Interface:* The system includes an interactive frontend, but setting it up requires technical proficiency.
**Considerations:**
Adapting ITB02 to fully meet your specific requirements would necessitate substantial technical modifications, particularly in areas like context management and RAG integration. Given your preference for a straightforward solution, exploring platforms specifically designed for managing extensive conversational contexts with built-in RAG support might be more practical.
**Alternative Recommendations:**
- **Leettools:** Offers a local AI search and RAG pipeline that runs entirely on local resources without the need for Docker or API keys. It's designed for users seeking to build a local knowledge base with minimal setup. citeturn0search1
- **LLM-Frontend:** A web application that facilitates chatting with an LLM while augmenting responses with precise data fetched from a vector database. It employs technologies like ChromaDB, Langchain, and Gradio. citeturn0search4
These alternatives might offer functionalities more closely aligned with your project, potentially requiring less technical setup and providing the features you need.
gpt-4o
⑂ thread forked here
rewrite a short comment in my style with a link to the repo and answer the question
The [ITB02](https://github.com/kliewerdaniel/ITB02) project is a **Multimodal Story Generation System** that transforms visual inputs into structured narratives using advanced AI technologies. It combines computer vision and large language models (LLMs) to generate dynamic, multi-chapter stories from images.
**Key Features:**
- **Image Analysis:** Extracts narrative elements from visual inputs.
- **Story Generation:** Utilizes LLMs to craft coherent and contextually rich stories.
- **Chapter Structuring:** Organizes content into multiple chapters for depth and engagement.
- **User Interface:** Provides an interactive frontend for seamless user experience.
**How ITB02 Addresses Your Needs:**
While ITB02 is primarily designed for generating stories from images, its architecture demonstrates the integration of LLMs with a user-friendly frontend, which is pertinent to your requirements. Here's how it aligns with your needs:
1. **Integration with Multiple Cloud-Hosted LLMs:**
- *Potential Adaptation:* Although ITB02 is configured for specific LLMs, its modular design suggests that, with technical adjustments, it could interface with various cloud-hosted LLMs.
2. **Maintaining Extensive Context:**
- *Current Limitation:* ITB02 processes individual images and doesn't inherently support maintaining a growing manuscript in context.
- *Possible Enhancement:* Modifying the system to handle and retain large textual contexts would require significant development effort.
3. **Retrieval-Augmented Generation (RAG) Support:**
- *Implementation Status:* The existing system doesn't incorporate RAG techniques.
- *Feasibility:* Incorporating RAG would involve integrating external data retrieval mechanisms, which is a complex task.
4. **Ease of Installation and Use:**
- *Technical Requirements:* ITB02 utilizes technologies like Docker, Python 3.11+, and Ollama, which might pose challenges for non-technical users.
- *User Interface:* The system includes an interactive frontend, but setting it up requires technical proficiency.
**Considerations:**
Adapting ITB02 to fully meet your specific requirements would necessitate substantial technical modifications, particularly in areas like context management and RAG integration. Given your preference for a straightforward solution, exploring platforms specifically designed for managing extensive conversational contexts with built-in RAG support might be more practical.
**Alternative Recommendations:**
- **Leettools:** Offers a local AI search and RAG pipeline that runs entirely on local resources without the need for Docker or API keys. It's designed for users seeking to build a local knowledge base with minimal setup.
- **LLM-Frontend:** A web application that facilitates chatting with an LLM while augmenting responses with precise data fetched from a vector database. It employs technologies like ChromaDB, Langchain, and Gradio.
These alternatives might offer functionalities more closely aligned with your project, potentially requiring less technical setup and providing the features you need.
gpt-4o
Check out [ITB02](https://github.com/kliewerdaniel/ITB02)! It's built as a multimodal story generation system, but its modular design shows how you could integrate multiple LLMs into a desktop front end. While it's geared toward turning images into structured stories, with some tweaks you might adapt it to maintain an extensive manuscript context and even add local RAG support. It might need some technical work to fully match your use case, but it's a cool starting point if you're up for some customization.
o3-mini
no explain how the technical aspects of the repo can be used and make it sound like me
If you're looking to integrate multiple LLMs and keep a growing manuscript in context, [ITB02](https://github.com/kliewerdaniel/ITB02) could be a solid foundation. The repo uses a modular approach with Docker and Python, which allows you to interface with LLMs like Ollama for story generation. With some technical work, you could adapt it to track long conversations and store context as your manuscript grows. You’d need to tweak the system to add support for local RAG, perhaps by hooking it up to something like ChromaDB or another vector database, but it's definitely possible to make it work for your needs with a bit of customization.
gpt-4o-mini
no use this repo: Skip to content
Navigation Menu
kliewerdaniel
ITB02
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Owner avatar
ITB02
Public
kliewerdaniel/ITB02
Name
kliewerdaniel
kliewerdaniel
Update README.md
e626201
·
last month
backend
a
last month
frontend
a
last month
.dockerignore
a
last month
.env
a
last month
.gitattributes
a
last month
Dockerfile
a
last month
README.md
Update README.md
last month
combine_files.py
a
last month
combined_output.txt
a
last month
docker-compose.yml
a
last month
image copy.jpg
a
last month
image.jpg
a
last month
requirements.txt
a
last month
utils.py
a
last month
Repository files navigation
README
# Multimodal Story Generation System
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/)
[](https://ollama.ai/)
Transform visual inputs into structured narratives using cutting-edge AI technologies. This system combines computer vision and large language models to generate dynamic, multi-chapter stories from images.

## Features
- 🖼️ **Image Analysis** - Extract narrative elements from images using LLaVA
- 📖 **Adaptive Story Generation** - Generate 5-chapter stories with Gemma2-27B
- 🧠 **Context Awareness** - Maintain narrative consistency with ChromaDB RAG
- 📊 **Interactive Visualization** - ReactFlow-powered story graph interface
- 🚀 **Production Ready** - Dockerized microservices architecture
## Table of Contents
- [Quick Start](#quick-start)
- [System Requirements](#system-requirements)
- [Architecture](#architecture)
- [Production Deployment](#production-deployment)
- [Troubleshooting](#troubleshooting)
- [Ethical Considerations](#ethical-consideration)
- [Contributing](#contributing)
- [License](#license)
## Quick Start
### Local Development Setup
1. **Clone Repository**
```bash
git clone https://github.com/kliewerdaniel/ITB02
cd ITB02
Create Virtual Environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
Install Dependencies
pip install -r requirements.txt
# Apple Silicon Special Setup
pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu
brew install libjpeg webp
Initialize AI Models
ollama pull gemma2:27b
ollama pull llava
Start Services
# Backend (FastAPI)
uvicorn backend.main:app --reload
# Frontend (new terminal)
cd frontend
npm install && npm run dev
Verify Installation
curl http://localhost:8000/health
# Expected response: {"status":"healthy"}
System Requirements
Python 3.11+
Node.js 18+
Ollama runtime
16GB RAM (24GB+ recommended for GPU acceleration)
10GB+ Disk Space
Architecture
[Frontend] ←HTTP→ [FastAPI]
↓ ↑
[Ollama] ←→ [ChromaDB]
↓
[Redis]
↓
[Celery Workers]
Key Components
Component Technology Stack Function
Image Analysis LLaVA, Pillow Visual narrative extraction
Story Engine Gemma2-27B, LangChain Context-aware chapter generation
Knowledge Base ChromaDB Narrative consistency management
API Layer FastAPI REST endpoint management
Visualization ReactFlow, Zustand Interactive story mapping
Production Deployment
Docker Setup
# Build and launch all services
docker-compose up --build
# Initialize vector store
docker exec -it backend python -c "from backend.core.rag_manager import NarrativeRAG; NarrativeRAG()"
Cluster Configuration
# docker-compose.yml excerpt
services:
ollama:
deploy:
resources:
limits:
memory: 12G
cpus: '4'
Troubleshooting
Common Issues
Missing Vector Store
rm -rf chroma_db && mkdir chroma_db
Out-of-Memory Errors
export OLLAMA_MAX_LOADED_MODELS=2
CUDA Compatibility Issues
pip uninstall torch
pip install torch --extra-index-url https://download.pytorch.org/whl/cu117
Daniel Kliewer
GitHub Profile
AI Systems Developer
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
1 star
Watchers
1 watching
Forks
0 forks
Releases
No releases published
Create a new release
Packages
No packages published
Publish your first package
Languages
Python
86.5%
Dockerfile
8.3%
JavaScript
5.2%
Suggested workflows
Based on your tech stack
SLSA Generic generator logo
SLSA Generic generator
Generate SLSA3 provenance for your existing release workflows
Python application logo
Python application
Create and test a Python application.
Django logo
Django
Build and Test a Django Project
More workflows
Footer
© 2025 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact
Manage cookies
Do not share my personal information
For your need to keep a growing manuscript in context while interacting with multiple LLMs, the [ITB02](https://github.com/kliewerdaniel/ITB02) repo can help you achieve a similar setup by using a modular architecture that connects various components, like Ollama and ChromaDB, to maintain narrative consistency.
The key elements to focus on would be:
1. **Multiple LLMs Integration**: The system already integrates Ollama, which supports models like Gemma2-27B, but you could extend it to support additional cloud-hosted LLMs. With Docker and FastAPI, it's easy to scale this to connect to other services.
2. **Maintaining Context**: The combination of ChromaDB for RAG (Retrieval-Augmented Generation) allows the system to manage and maintain large amounts of data, making it possible to keep your manuscript in context as it grows. You would need to tweak it slightly to handle long-form text more effectively, but the foundation is already there.
3. **Interactive Visualization**: ITB02 uses ReactFlow to visualize the story’s progression, which could be adapted to visualize the evolution of your manuscript’s structure and LLM interactions.
4. **Local Setup with Easy Deployment**: The setup process involves Docker, which might seem a bit daunting but is well-documented in the repo. The steps to install and initialize the system are straightforward once you follow the quick-start guide, and the system’s containerized approach ensures that it's isolated and easy to manage.
If you don’t need a ton of frills, ITB02 offers a solid foundation for managing context and integrating multiple LLMs in a local, scalable environment with the possibility to fine-tune for RAG support. You can dive in and tweak it as needed for your specific manuscript project.
gpt-4o-mini