Home / Companies / AssemblyAI / Blog / Post Details
Content Deep Dive

Retrieval Augmented Generation on audio data with LangChain and Chroma

Blog post from AssemblyAI

Post Details
Company
Date Published
Author
Ryan O'Connor
Word Count
1,886
Company Posts That Month
16
Language
English
Hacker News Points
1
Post removed?
No
Summary

In this tutorial, we learned how to build a retrieval augmented generation (RAG) model using LangChain with audio data. We combined several tools such as AssemblyAI for transcribing the audio files, HuggingFace's tokenizers and transformers libraries for embedding the transcriptions, Chroma for creating a vector database, and OpenAI's GPT-3.5 for generating responses based on the retrieved information. To implement this model, we followed these steps: 1. Load audio files with AssemblyAI loader and transcribe them into text format. 2. Use HuggingFace's transformers library to embed the transcriptions into vectors. 3. Store the vector representations of the audio transcriptions in a Chroma vector database. 4. Perform queries with GPT-3.5 using the stored audio content as context for generating responses. We also demonstrated how to run the application and provided an example response along with the source information. Finally, we mentioned additional learning resources such as our blog tutorials section and YouTube channel.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
RAG 17 466 92 33 +83%
LLM 16 2,134 271 94 -26%
Vector Search 15 1,500 202 67 -14%
Data Pipeline 3 315 134 60 -18%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.