Skip to main content
In this guide, you’ll learn how to use LeMUR to summarize your audio data with key takeaways.
If you want a Quickstart, see Apply LLMs to audio files.
Before you startTo use LeMUR, you need an AssemblyAI account with a credit card set up.

Basic summary example

If you want to send a custom prompt to the LLM, you can use the LeMUR Task and apply the model to your transcribed audio files. To summarize the content in your audio data, define a summarization prompt and call transcript.lemur.task(). The underlying transcript is automatically used as additional context for the model.

Example output

Summary with specialized endpoint

The LeMUR Summary function requires no prompt engineering and facilitates more deterministic and structured outputs. You can use it with transcript.lemur.summarize(). You can add additional context to provide information that is not explicitly referenced in the audio data, as well as specify an answer format. For this, use the optional parameters context and answer_format.

Custom summary example (Advanced)

In this example, we’ll run a custom LeMUR task with an advanced prompt to create custom summaries: Cookbook: Custom summary with LeMUR Task

More summarization prompt examples

Try any of these prompts to get started: For more use cases and prompt examples, see LeMUR examples.

API reference

Improve the results

To improve the results, see the following resources: