Skip to main content
POST
/
chat
/
send-message-simple-api
Handle Simplified Chat Message
curl --request POST \
  --url https://api.example.com/chat/send-message-simple-api \
  --header 'Content-Type: application/json' \
  --cookie fastapiusersauth= \
  --data '
{
  "chat_session_id": 123,
  "message": "<string>",
  "retrieval_options": {
    "run_search": "always",
    "real_time": true,
    "filters": {
      "source_type": [
        "ingestion_api"
      ],
      "document_set": [
        "<string>"
      ],
      "time_cutoff": "2023-11-07T05:31:56Z",
      "tags": [
        {
          "tag_key": "<string>",
          "tag_value": "<string>"
        }
      ]
    },
    "enable_auto_detect_filters": true,
    "offset": 123,
    "limit": 123
  },
  "query_override": "<string>",
  "search_doc_ids": [
    123
  ]
}
'
{
  "answer": "<string>",
  "answer_citationless": "<string>",
  "simple_search_docs": [
    {
      "semantic_identifier": "<string>",
      "blurb": "<string>",
      "match_highlights": [
        "<string>"
      ],
      "source_type": "ingestion_api",
      "link": "<string>"
    }
  ],
  "error_msg": "<string>"
}

Authorizations

fastapiusersauth
string
cookie
required

Body

application/json

Before creating messages, be sure to create a chat_session and get an id Note, for simplicity this option only allows for a single linear chain of messages

chat_session_id
integer
required
message
string
required
retrieval_options
RetrievalDetails · object
query_override
string
search_doc_ids
integer[]

Response

Successful Response

answer
string
answer_citationless
string
simple_search_docs
SimpleDoc · object[]
error_msg
string