Headers
-
The id of the target brand
Query parameters
-
question string
The question to search for
GET /chat/rag/search-documents
curl \
-X GET https://domain.tld/api/v2/chat/rag/search-documents \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "X-Popsell-Brand: 3"
Response examples (200)
[
{
"id": 42,
"content": "string",
"distance": 42.0,
"actions": [
{
"type": 42,
"id_chat_topic": 42
}
]
}
]
Response examples (401)
{
"message": "Unauthorized."
}