SS Code Hub
/ Research Docs
The platform operates on a three-tier architecture:
/
Returns server welcome message, health check link, and interactive documentation URLs.
/api/health
Returns active count of indexed PDFs, OKF notes, and engine status.
/api/upload-pdf
Accepts multipart/form-data PDF file, extracts text, generates 120-word chunks, and upserts to ChromaDB.
/api/pdfs
Lists all currently indexed PDF document filenames.
/api/pdf/{filename}
Deletes a PDF from disk and purges all its vector embeddings from ChromaDB.
/api/okf-notes
Lists all Google OKF notes parsed with YAML frontmatter metadata.
/api/okf-notes
Saves a Markdown note formatted with YAML frontmatter headers (title, subject, tags, canonical facts).
/api/chat
Executes hybrid query routing across OKF notes and ChromaDB vectors. Returns structured answer and source attribution.
/api/vector-db/inspect
Returns JSON inspection of all chunks, word counts, character counts, and IDs stored in ChromaDB.
The system includes one-click batch launcher scripts in the root directory:
run_all.bat - Launches both Backend (port 8000) and Frontend (port 3000) in separate windows.run_backend.bat - Launches Python FastAPI backend API.run_frontend.bat - Launches Vite React frontend dashboard.python backend/inspect_vector_db.py - CLI vector DB inspector script.