Fuzzy-LangGraph / API_SPEC.md
Angshul's picture
Upload 10 files
7b4d34e verified
|
Raw History Blame Contribute Delete
703 Bytes
# Fuzzy LangGraph API
## GET /health
Returns service status, ingested document count, and graph readiness.
## POST /ingest
```json
{
"replace": true,
"documents": [
{
"id": "doc-1",
"text": "The current access code is BRAVO-9.",
"title": "Current notice",
"source": "official",
"authority": 0.98,
"freshness": 1.0,
"reliability": 0.95,
"metadata": {}
}
]
}
```
## POST /query
```json
{"question":"What is the current access code?","k":4}
```
The request executes the compiled LangGraph flow `retrieve -> assess -> generate|expand|abstain` and returns the final state including answer, citations, confidence, route, reason, and evidence.