MaiStorage API

Agentic RAG System Documentation

API Documentation

Complete reference for the MaiStorage Agentic RAG API

API v1.0
FastAPI
OpenAPI 3.0

Quick Start

Get started with basic API usage and authentication

Chat Endpoints

Streaming chat and Q&A functionality

Search API

Hybrid retrieval and document search

Chat Endpoints

Real-time chat and Q&A with streaming responses

POST
/api/chat/stream

Send a question and receive streaming responses with citations

{
  "query": "What is the main topic?",
  "agentic_mode": false,
  "context_limit": 5
}
GET
/api/health

Check API health and system status

Search Endpoints

Document retrieval and hybrid search functionality

POST
/api/search

Perform hybrid search across documents

{
  "query": "search terms",
  "top_k": 10,
  "rerank": true
}
POST
/api/documents/ingest

Upload and index new documents

Evaluation Endpoints

System evaluation and metrics

POST
/api/eval/run

Run evaluation on test dataset

GET
/api/eval/results

Get latest evaluation results

Try the API

Test the API endpoints directly from your browser

Use our interactive chat interface to test the streaming API in real-time.