LeMUR
Summarize your audio data
If you run the code above, you’ll see the following output:
Ask questions about your audio data
Q&A with the task endpoint
To ask question about your audio data, define a prompt with your questions and call client.lemur.task()
. Use the transcript_ids
parameter to send one or more transcripts as additional context for the model.
#Example output
Q&A with the question-answer endpoint
The LeMUR Question & Answer function requires no prompt engineering and facilitates more deterministic and structured outputs. See the code examples below for more information on how to use this endpoint.
To use it, define a list of questions
. For each question, you can define additional context
and specify either a answer_format
or a list of answer_options
. Additionally, you can define an overall context
.
For the full API reference, as well as the supported models and FAQs, refer to the full LeMUR Q&A guide.
Change the model type
LeMUR features the following LLMs:
- Claude 3.5 Sonnet
- Claude 3 Opus
- Claude 3 Haiku
- Claude 3 Sonnet
You can switch the model by specifying the final_model
parameter.
You can find more information on pricing for each model here.
Change the maximum output size
You can change the maximum output size in tokens by specifying the max_output_size
parameter. Up to 4000 tokens are allowed.
Change the temperature
You can change the temperature by specifying the temperature
parameter, ranging from 0.0 to 1.0.
Higher values result in answers that are more creative, lower values are more conservative.
Send customized input
You can submit custom text inputs to LeMUR without transcript IDs. This allows you to customize the input, for example, you could include the speaker labels for the LLM.
To submit custom text input, use the input_text
parameter instead of transcript_ids
.
Submit multiple transcripts
LeMUR can easily ingest multiple transcripts in a single API call.
You can feed in up to a maximum of 100 files or 100 hours, whichever is lower.
Delete LeMUR request data
You can delete the data for a previously submitted LeMUR request.
Response data from the LLM, as well as any context provided in the original request will be removed.