v1
latestOpenAPI 3.0.22026-08-0426137631.3 KBQ&A API
Question Answering API analyzes each Product's html field and extracts paragraphs that can answer users' questions.
For example, Miso can take question likes What is python?, and extract an answer like Python is an interpreted, object-oriented, high-level programming language. from a product's html field.
Each answer is assigned a probability score that determines how likely a paragraph can accurately answer the question. A probability at least 0.7 is recommended, but you usually will need to fine-tune this threshold to find the precision-and-recall sweet-spot for your application.
Limitations
Miso will only extract answers from the html field and from products that have enable_question_answering set to true. Also, since Q&A is a much more complex search problem, the response time of this API is usually between 1 to 2 seconds for a new question. For an old question this API has answered before, the response time will be less than 75ms.
Request body
Example request
{
"version": "v1.2",
"q": "what is gradient descent",
"min_probability": 0.7
}Response
Successful Response
Example response
{
"data": {
"miso_id": "123e4567-e89b-12d3-a456-426614174000",
"total": 1000,
"spellcheck": {
"original_query": "what is pythn",
"original_query_with_markups": "what is <mark>pythn</mark>",
"corrected_query": "what is python",
"corrected_query_with_markups": "what is <mark>python</mark>"
}
}
}