Add FastAPI dashboard MVP

This commit is contained in:
2026-05-26 21:02:39 +02:00
parent e1640071e4
commit 83b85cb760
8 changed files with 1201 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ An embeddable, offline-first memory system for AI agents with correctness tracki
- **ChromaDB Vector Store** (`src/chroma_store.py`) — Semantic similarity search
- **Neural Confidence Scorer** (`src/neural_scorer.py`) — PyTorch RL net, trains on confirm/reject feedback
- **Hybrid Retrieval** (`src/retriever.py`) — Keyword + Semantic + Neural fusion
- **Streamlit Dashboard** (`src/app_dashboard.py`) — Search, confirm/reject, neural training UI
- **FastAPI Dashboard** (`fastapi_app.py`) — Lightweight web UI (search + confirm/reject) and JSON API
- **Streamlit Dashboard** (`src/app_dashboard.py`) — (optional) richer UI for neural training, etc.
- **Graph Visualization** (`src/graph_view.py`) — Interactive Cytoscape.js graph with confidence colors
## Architecture
@@ -16,3 +17,19 @@ An embeddable, offline-first memory system for AI agents with correctness tracki
## Obsidian
Setup and timers: `second-brain/docs/OBSIDIAN.md`
## Quickstart (Dashboard)
Install minimal dashboard deps:
`python3 -m pip install -r requirements-dashboard.txt`
Run:
`SECOND_BRAIN_WORKSPACE="$(pwd)" python3 fastapi_app.py`
Then open: `http://localhost:8501/`
Port is configurable via `SECOND_BRAIN_PORT` (or `PORT`), e.g.:
`SECOND_BRAIN_WORKSPACE="$(pwd)" SECOND_BRAIN_PORT=8502 python3 fastapi_app.py`