Retrieve
Retrieve chunks of sources documents related to the prompt, including any source metatdata.
application/json
Request Body required
prompt Prompt required
Responses
- 200
- 422
Successful Response
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
prompt Prompt required
documents object[] required
page_content Page Content required
metadata object
{
"prompt": "string",
"documents": [
{
"page_content": "string",
"metadata": {}
}
]
}
Validation Error
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
detail object[]
loc object[] required
anyOf
MOD1
MOD2
string
integer
msg Message required
type Error Type required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...