File size: 609 Bytes
181a630
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Fuzzy LangChain API

## GET /health
Returns service status and number of ingested documents.

## 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 response contains `answer`, `citations`, `confidence`, `margin`, `decision`, `reason`, and ranked `evidence`.