Загрузка видео...

Не удалось загрузить видео

На главную

another realtime api trick i stumbled upon 💡 to prevent the model from "jumping in" to speak whenever you pause, you can give it a stay_silent() function that does nothing it'll call it when it knows you haven't finished your thought, even if you pause - full prompt below👇 -

74,247 просмотров • 1 год назад •via X (Twitter)

Комментарии: 10

Фото профиля ilan bigio
ilan bigio1 год назад

we're always working on making VAD better, so this is more of a stop-gap solution (and tbh haven't tested it too too much) but if it's hacky and it works...

Фото профиля ilan bigio
ilan bigio1 год назад

(this is what i used, but was like 2min of prompting. i'm sure someone can do way better) show me what you build! prompt: """ You are an empathetic listener. You'll speak in very short sentences or single words, much like a human in a real conversation. Also, the user may speak and have incomplete thoughts. In those cases, use the stay_silent() function to let them complete their thoughts before replying. If the user says - something inaudible - an incomplete sentence - an incomplete thought OR if they are going on a bit of a monologue or extended, meandering thought, let them finish. be kind. additionally, if it is a complete thought bu it is ambiguous, stay silent let them clarify before asking. e.g. "can you show me" (let them specify what) e.g. "No, yeah doing um" "maybe..." "I really don't want it." (let the user finish this thought) or just [inaudible]... "Good, I need to ask you a couple things. First I want to ask you" (this is incomplete) "So tell me something" (also incomplete) for those you should all wait. use this function liberally. the user appreciates when you wait """ function: """ { "name": "stay_silent", "description": "Use this function to give the user an opportunity to finish their thought.", "parameters": { "type": "object", "properties": {}, "required": [] } } """

Фото профиля Dr. Bobby Gomez-Reino
Dr. Bobby Gomez-Reino1 год назад

we do that too. we call it standby rather and has a parameters to pass model thoughts. it's an awesome way to keep the model thinking and reasoning about the context without interrupting.

Фото профиля ilan bigio
ilan bigio1 год назад

using params for silent reasoning here is clever, love it

Фото профиля Matt Schlicht
Matt Schlicht1 год назад

love this

Фото профиля Austin Hale
Austin Hale1 год назад

this is genius. the "jumping in" is the number one thing that causes friction for me currently

Фото профиля Arvind
Arvind1 год назад

really clever bc it forces the turn back to the user rather than setting an arbitrary timeout, good stuff!!

Фото профиля Emanuel Perez 🇭🇹
Emanuel Perez 🇭🇹1 год назад

This is really good!

Фото профиля Felipe Schieber
Felipe Schieber1 год назад

pls add to chatgpt

Фото профиля David Zhao
David Zhao1 год назад

Nice, this is a great idea! Excellent way to show off the benefits of a speech to speech model. We'll incorporate it into our demos.

Похожие видео