POST
/
query
/
answer-with-quote
{
  "answer": "<string>",
  "rephrase": "<string>",
  "quotes": {
    "quotes": [
      {
        "quote": "<string>",
        "document_id": "<string>",
        "link": "<string>",
        "source_type": "<string>",
        "semantic_identifier": "<string>",
        "blurb": "<string>"
      }
    ]
  },
  "citations": [
    {
      "citation_num": 123,
      "document_id": "<string>"
    }
  ],
  "docs": {
    "top_documents": [
      {
        "document_id": "<string>",
        "chunk_ind": 123,
        "semantic_identifier": "<string>",
        "link": "<string>",
        "blurb": "<string>",
        "source_type": "ingestion_api",
        "boost": 123,
        "hidden": true,
        "metadata": {},
        "score": 123,
        "match_highlights": [
          "<string>"
        ],
        "updated_at": "2023-11-07T05:31:56Z",
        "primary_owners": [
          "<string>"
        ],
        "secondary_owners": [
          "<string>"
        ],
        "db_doc_id": 123
      }
    ],
    "rephrased_query": "<string>",
    "predicted_flow": "search",
    "predicted_search": "keyword",
    "applied_source_filters": [
      "ingestion_api"
    ],
    "applied_time_cutoff": "2023-11-07T05:31:56Z",
    "recency_bias_multiplier": 123
  },
  "llm_chunks_indices": [
    123
  ],
  "error_msg": "<string>",
  "answer_valid": true,
  "chat_message_id": 123,
  "contexts": {
    "contexts": [
      {
        "content": "<string>",
        "document_id": "<string>",
        "semantic_identifier": "<string>",
        "blurb": "<string>"
      }
    ]
  }
}

Authorizations

fastapiusersauth
string
cookierequired

Body

application/json
messages
object[]
required
prompt_id
integer
persona_id
integer
required
retrieval_options
object
chain_of_thought
boolean
default: false
return_contexts
boolean
default: false

Response

200 - application/json
answer
string
rephrase
string
quotes
object
citations
object[]
docs
object
llm_chunks_indices
integer[]
error_msg
string
answer_valid
boolean
default: true
chat_message_id
integer
contexts
object