Ask questions using LeMUR
POST {{baseUrl}}/lemur/v3/generate/question-answer
Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts. The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
Request Body
{"transcript_ids"=>["64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"], "context"=>"This is an interview about wildfires.", "final_model"=>"default", "max_output_size"=>3000, "temperature"=>0, "questions"=>[{"question"=>"Where are there wildfires?", "answer_format"=>"List of countries in ISO 3166-1 alpha-2 format", "answer_options"=>["US", "CA"]}, {"question"=>"Is global warming affecting wildfires?", "answer_options"=>["yes", "no"]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"request_id":"5e1b27c2-691f-4414-8bc5-f14678442f9e","usage":{"input_tokens":27,"output_tokens":3},"response":[{"question":"Where are there wildfires?","answer":"CA, US"},{"question":"Is global warming affecting wildfires?","answer":"yes"}]}