From 443af26e27415fd607bd0b58d25307c0dad9f927 Mon Sep 17 00:00:00 2001 From: parshvadaftari Date: Tue, 10 Sep 2024 13:27:56 +0530 Subject: [PATCH] Changes to the RAG implementation for the updated version. --- examples/voice-assistant/simple-rag/assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/voice-assistant/simple-rag/assistant.py b/examples/voice-assistant/simple-rag/assistant.py index 1bbcda056..98f6c18e9 100644 --- a/examples/voice-assistant/simple-rag/assistant.py +++ b/examples/voice-assistant/simple-rag/assistant.py @@ -46,7 +46,7 @@ async def _enrich_with_rag(assistant: VoiceAssistant, chat_ctx: llm.ChatContext) stt=deepgram.STT(), llm=openai.LLM(), tts=openai.TTS(), - before_llm_cb=_enrich_with_rag, + will_synthesize_assistant_reply=_enrich_with_rag, ) assistant.start(ctx.room)