<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RAG on jdcsen</title><link>https://jdcsen.com/tags/rag/</link><description>Recent content in RAG on jdcsen</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 01 Jan 1970 00:33:45 +0000</lastBuildDate><atom:link href="https://jdcsen.com/tags/rag/index.xml" rel="self" type="application/rss+xml"/><item><title>RAG Personalization for Speech Recognition</title><link>https://jdcsen.com/projects/rag-asr-personalization/</link><pubDate>Thu, 01 Jan 1970 00:33:45 +0000</pubDate><guid>https://jdcsen.com/projects/rag-asr-personalization/</guid><description>&lt;ul&gt;&#10;&lt;li&gt;Retrieval-augmented personalization for the same speech LLM behind the &lt;a href="https://jdcsen.com/projects/paralinguistic-features/"&gt;paralinguistic backend&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;A user&amp;rsquo;s contacts, device names and music library are retrieved from their catalogs with approximate-nearest-neighbor search.&lt;/li&gt;&#10;&lt;li&gt;Retrieved entries are injected into the LLM&amp;rsquo;s prefill context, so the model transcribes the user&amp;rsquo;s own vocabulary instead of guessing at it.&lt;/li&gt;&#10;&lt;li&gt;The original design needed three round trips through the LLM per request. Working with the applied science team, we replaced LLM-generated query embeddings with an index keyed on voice features, eliminating one of them, a roughly 20 ms LLM round trip per request.&lt;/li&gt;&#10;&lt;li&gt;Keying retrieval on voice features also decoupled the lookup from the LLM&amp;rsquo;s context request, so retrieval runs speculatively, in parallel with the model, instead of waiting on it.&lt;/li&gt;&#10;&lt;li&gt;Led the effort end to end, from retrieval design to serving.&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>