Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 17 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,55 +48,31 @@ Open **http://localhost:8000**, or use the auto-generated Cloudflare tunnel URL

---

## Feature Demo
## Screenshots

> GIFs live in `images/`.
### Chat with your documents (RAG)

### Basic Chat
Upload a PDF, DOCX or TXT file and ask about it. The answer below comes from the uploaded remote-work policy: Apollo retrieved the right chunks from FAISS and the local model answered from them.

Simple conversation with a local LLM, fast, private, and fully offline-capable.
![Chat answering a question from an uploaded document](images/chat-rag.png)

![Basic chat demo](images/chat.gif)
### Workspace dashboard

---

### Session Memory

Create new chats and switch between sessions. Conversation history persists per session during runtime.
Counts for documents, chunks, datasets and jobs, plus a health check that tells you which local service each feature needs.

![Session memory demo](images/session.gif)

---
![Workspace dashboard](images/home.png)

### Document Q&A (RAG)

Upload PDF, DOCX, or TXT files and ask questions about their content. Documents are chunked, embedded, and indexed in FAISS.

![Document RAG demo](images/rag.gif)

---
### LoRA Studio: dataset quality control

### Toggle Document Usage
One click scores a training set from 0 to 100. Here it catches an exact copy (`bottle_02_copy.jpg`) and two near duplicates before any GPU time is spent.

Enable or disable document context per session. Compare pure LLM answers vs RAG-enhanced responses with one click.

![Document toggle demo](images/toggle.gif)

---

### Prompt Library

Create reusable prompt templates and apply them from the chat header. Use `{input}` as a placeholder for the user's message.

![Prompt library demo](images/prompts.gif)

---
![Dataset quality check in LoRA Studio](images/lora-dataset.png)

### Prompt Management
### ComfyUI generation

Edit and delete saved prompts from the library panel. Templates sync via the REST API (`GET/POST/PUT/DELETE /prompts`).
Pick an imported workflow, set the prompt and parameters, and check the graph before it is queued.

![Prompt edit demo](images/prompt-edit.gif)
![ComfyUI generation page](images/comfyui.png)

---

Expand Down Expand Up @@ -178,7 +154,7 @@ or process adapter. Nothing in the document pipeline imports ComfyUI code.

## Engineering

- **Tested:** the suite runs without Ollama or ComfyUI (425 tests). CI runs lint (ruff), a type check (mypy), the tests with coverage reporting, a retrieval regression gate and a Docker build.
- **Tested:** the suite runs without Ollama or ComfyUI (864 tests, 97% line coverage). CI runs lint (ruff), a type check (mypy), the tests with a 95% coverage floor, a retrieval regression gate and a Docker build.
- **Measured:** retrieval is scored on 48 questions: MiniLM hit@4 1.0000, MRR 0.9757. See [docs/EVAL.md](docs/EVAL.md).
- **Documented:** [architecture](docs/ARCHITECTURE.md) and [design decisions and trade-offs](docs/DESIGN.md).

Expand Down Expand Up @@ -491,9 +467,9 @@ Apollo/
│ ├── smoke_preflight.py # Live training-preflight demo
│ └── smoke_rag_persistence.py # Restart-survival verification for the index
├── workflows/ # ComfyUI workflows + node-input mappings
├── tests/ # Test suite (425 tests) + legacy debug scripts
├── tests/ # Test suite (864 tests) + legacy debug scripts
├── data/ # Documents, sessions, jobs, LoRA projects, generated images, rag index
├── images/ # Feature demo GIFs (README showcase)
├── images/ # README screenshots
├── launcher.py # One-command startup (API + tunnel)
├── main.py # CLI / API entrypoint
├── .env.example # Example environment variables
Expand Down Expand Up @@ -665,7 +641,7 @@ Local-first does not mean unguarded:
- Documents, sessions, jobs, LoRA projects, workflows and generated images all persist on disk
- Upload debug logs appear in the server console: `[UPLOAD] filename`, `extracted chars`, `rag chunks indexed`
- Utility scripts: `python scripts/verify_system.py`, `python scripts/diagnostics_ollama.py`
- Run the tests with `python -m pytest` (425 tests); stress tests: `pytest tests/test_stress.py -m slow`
- Run the tests with `python -m pytest` (864 tests); stress tests: `pytest tests/test_stress.py -m slow`
- Log prefixes: `[COMFYUI]`, `[COMFYUI JOB]`, `[LORA]`, `[LORA TRAINING]`, `[DATASET]`, `[RAG]`, `[RUN HISTORY]`
- `tests/` also contains standalone diagnostic scripts (`test_endpoints.py`,
`test_ollama_detailed.py`, …) that predate the suite. They print at import time
Expand Down
18 changes: 8 additions & 10 deletions images/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Feature demo GIFs
# README screenshots

| File | Feature |
|------|---------|
| `chat.gif` | Basic chat |
| `session.gif` | New chat / session memory |
| `rag.gif` | Document upload + Q&A |
| `toggle.gif` | Use Documents on/off |
| `prompts.gif` | Create and use prompt templates |
| `prompt-edit.gif` | Edit and delete prompts |
| File | Shows |
|------|-------|
| `chat-rag.png` | Chat answering from an uploaded document |
| `home.png` | Workspace dashboard |
| `lora-dataset.png` | LoRA Studio dataset quality check |
| `comfyui.png` | ComfyUI generation page |

Referenced from the README **Feature Demo** section.
Taken 2026-10-24 at 1440x900 with demo data. Referenced from the README **Screenshots** section.
Binary file added images/chat-rag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/chat.gif
Binary file not shown.
Binary file added images/comfyui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/lora-dataset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/prompt-edit.gif
Binary file not shown.
Binary file removed images/prompts.gif
Binary file not shown.
Binary file removed images/rag.gif
Binary file not shown.
Binary file removed images/session.gif
Binary file not shown.
Binary file removed images/toggle.gif
Binary file not shown.
Loading