Download OpenAPI specification:
Local knowledge base REST API
| question required | string |
| top_k | integer Default: 0 |
object or null |
{- "question": "string",
- "top_k": 0,
- "options": {
- "property1": null,
- "property2": null
}
}{- "answer": "string",
- "sources": [
- {
- "source": "string",
- "content_type": "string",
- "chunk": "string",
- "distance": 0,
- "page_start": 0,
- "page_end": 0,
- "line_start": 0,
- "line_end": 0,
- "chunk_index": 0
}
]
}| question required | string |
| top_k | integer Default: 0 |
object or null |
{- "question": "string",
- "top_k": 0,
- "options": {
- "property1": null,
- "property2": null
}
}null| question required | string |
| history | any Default: [] |
| top_k | integer Default: 0 |
object or null |
{- "question": "string",
- "history": [ ],
- "top_k": 0,
- "options": {
- "property1": null,
- "property2": null
}
}{- "answer": "string",
- "sources": [
- {
- "source": "string",
- "content_type": "string",
- "chunk": "string",
- "distance": 0,
- "page_start": 0,
- "page_end": 0,
- "line_start": 0,
- "line_end": 0,
- "chunk_index": 0
}
]
}| question required | string |
| history | any Default: [] |
| top_k | integer Default: 0 |
object or null |
{- "question": "string",
- "history": [ ],
- "top_k": 0,
- "options": {
- "property1": null,
- "property2": null
}
}null| paths required | Array of strings |
| force | boolean Default: false |
| vision_model | string Default: "" |
{- "paths": [
- "string"
], - "force": false,
- "vision_model": ""
}null