Skip to content
peter-olai edited this page May 7, 2025 · 3 revisions

API Routes (routes/)

The src/routes/ directory defines the API endpoints for the chat service. For detailed descriptions of each endpoint, including request and response formats, please see the API Reference.

Currently, the routes are organized into the following files:

  • debug.py: Provides endpoints for accessing in-memory logs for debugging purposes (see Debug Logs API).
  • progress.py: Manages and tracks task progress through various API calls (see Progress API).
  • upload.py: Handles file uploads, primarily for ingesting documents into the RAG Service (see Upload API).

Responsibilities

  • Structuring API endpoints (e.g., using FastAPI routers).
  • Defining request and response models (often in src/models/).
  • Handling incoming API requests and delegating to appropriate service logic (e.g., functions in pipeline.py, LLM.py, rag_service/, transcribe.py).
  • Authentication and authorization for endpoints (if applicable).

(This page provides an overview. For specifics, refer to API-Reference.)

Clone this wiki locally