Skip to content

Commit

Permalink
Cookbook: How To Setup An AI Coach With LeMUR
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ince-aai committed Feb 21, 2025
1 parent e209dbf commit ad30c63
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ navigation:
path: pages/05-guides/cookbooks/lemur/sales-playbook.mdx
slug: sales-playbook
hidden: true
- page: LeMUR Task Endpoint AI Coach
- page: How To Setup An AI Coach With LeMUR
path: pages/05-guides/cookbooks/lemur/task-endpoint-ai-coach.mdx
slug: task-endpoint-ai-coach
hidden: true
Expand Down
35 changes: 32 additions & 3 deletions fern/pages/05-guides/cookbooks/lemur/task-endpoint-ai-coach.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
---
title: 'LeMUR Task Endpoint AI Coach'
title: 'How To Setup An AI Coach With LeMUR'
---




# LeMUR Task Endpoint AI Coach

This Colab will demonstrate how to use AssemblyAI's [LeMUR](https://www.assemblyai.com/blog/lemur/) (Leveraging Large Language Models to Understand Recognized Speech) framework to get AI coaching using the Task endpoint.
This tutorial will demonstrate how to use AssemblyAI's [LeMUR](https://www.assemblyai.com/blog/lemur/) (Leveraging Large Language Models to Understand Recognized Speech) framework to get AI coaching using the Task endpoint.

Here’s the full sample code for what you’ll build in this tutorial:

```python
import assemblyai as aai

aai.settings.api_key = "YOUR_API_KEY"
audio_url = "https://storage.googleapis.com/aai-web-samples/meeting.mp4"

transcript = aai.Transcriber().transcribe(audio_url)

prompt = f"""
- You are an expert at providing valuable feedback to individuals.
- You possess exceptionally high emotional intelligence.
- You excel at analyzing the behavior of individuals in the given transcript and providing insights on how they could improve.
- You emphasize constructive criticism in your feedback.
- The feedback focuses on how people can better achieve their objectives.
- You avoid providing unjustified or unfounded feedback.
- Your communication is clear, accurate and concise, and you write with perfect English.
- Directly start with the feedback without any preamble or introduction.
"""

result = transcript.lemur.task(
prompt,
final_model=aai.LemurModel.claude3_5_sonnet
)

response = result.response
print(response)
```

### Getting Started

Expand Down
2 changes: 1 addition & 1 deletion fern/pages/05-guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ _LeMUR_
|[Extracting Transcript Quotes with LeMUR](guides/timestamped-transcripts)|
|[How to Pass Context from Previous LeMUR Requests](guides/past-response-prompts)|
|[Implement a Sales Playbook Using LeMUR](guides/sales-playbook)|
|[LeMUR Task Endpoint AI Coach](guides/task-endpoint-ai-coach)|
|[How to Setup an AI Coach with LeMUR](guides/task-endpoint-ai-coach)|
|[LeMUR Task Endpoint Action Items](guides/task-endpoint-action-items)|
|[LeMUR Task Endpoint Custom Summary](guides/task-endpoint-custom-summary)|
|[LeMUR Task Endpoint Structured Q&A](guides/task-endpoint-structured-QA)|
Expand Down

0 comments on commit ad30c63

Please sign in to comment.