pipecat-ai/sidechat
- License
- bsd-2-clause
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from pipecat-ai/sidechat
All models by pipecat-ai →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from pipecat-ai/sidechat
All models by pipecat-ai →⚠️ Experimental. Outputs, names and calibration may change between releases.
A small text classifier for a voice agent in a conversation with several people. For each line it says whether the agent should speak now, wait to see if anyone else does, or stay quiet. It runs on the CPU, and speakers can be anonymous ("Speaker 1").
The first three rows are on Duplex-MPE, 52,336 lines. The fourth is on recorded requests placed in real meetings, as Deepgram heard them.
Code: github.com/pipecat-ai/sidechat. Training data: pipecat-ai/sidechat-gen.
Each has fp32 and int8 files. int8 decides the same as fp32 on 98.5% to 99.9% of test lines.
PipecatSidechat goes between the user aggregator and the LLM, and lets the LLM answer only the turns meant
for the bot:
It loads agent-1x in int8 unless told otherwise (variant="small"); variant="base" loads the default
build. It is in pipecat-ai/pipecat#6934 until that is
released, with a full bot in examples/turn-management/turn-management-sidechat.py.
The model learned from meetings, where a request that doesn't name the agent is most often for a person. An
agent that people ask for the same few things without its name, such as one that runs the screen in a room, can
list them in commands. A turn that contains one is answered whatever the model reads:
These are agent-1x's decisions on one scripted meeting. The last row is the cost: a command matches by its
words, whole and in any case, so the same words said to a person are answered too. List what people ask the
agent for ("show the agenda"), not words they also use with each other ("the agenda"). A turn answered this way
reports the reason command.
role is one line on what the agent is and does. The model reads it with every turn.
decide gives respond, wait (speak only if nobody else does) or ignore, at the thresholds in
config.json. For the default build, load the repo root with model.onnx or model-int8.onnx.
Give your speech-to-text service the agent's name as a keyterm (Deepgram's keyterm). An unusual name is often
misheard otherwise, and a request that names the agent is then missed.
Strengths
agent-1x takes about 10 ms a line on half a CPU, with no API call.Weaknesses
agent-1x.agent-1x 29%. A list of 10
commands brought that to 14% and 17%, and matched none of 3,329 lines of people's household talk. The list
was written by someone who had read the test's lines, so take that as a best case.Jev is a hosted classifier, asked as Pipecat's daily-audience demo asks it. Speakers are anonymous.
Labels follow the project's own guide, so read these as comparisons, not benchmarks.
Both builds use Ettin encoders (MIT) with intent, respond
and unclear heads. agent-1x is distilled from the default build.
Duplex-MPE, the Social AI Ambient Bench and SLURP's recordings were used for evaluation only.
from pipecat.turns.sidechat import PipecatSidechat
sidechat = PipecatSidechat(agent_name="Atlas")
pipeline = Pipeline([ transport.input(), stt, user_aggregator, sidechat, llm, tts, transport.output(), assistant_aggregator,])sidechat = PipecatSidechat( agent_name="Atlas", role="voice assistant in the meeting room's screen; it shows the agenda and keeps time", commands=["show the agenda", "next item", "start the timer", "stop the timer"],)
@sidechat.event_handler("on_sidechat_decision")async def on_sidechat_decision(sidechat, verdict): logger.info(f"{verdict.decision} ({verdict.reason}): {verdict.line.text}")pip install git+https://github.com/pipecat-ai/sidechatfrom huggingface_hub import snapshot_downloadfrom sidechat.runtime import loadfrom sidechat.schema import Agent, SidechatRequest, Turn
path = snapshot_download("pipecat-ai/sidechat", allow_patterns=["agent-1x/*.json", "agent-1x/*-int8.onnx"])model = load(f"{path}/agent-1x", threads=1, int8=True)
request = SidechatRequest( agent=Agent(name="Atlas"), speaker="Speaker 1", text="Can you check that for us?", history=[Turn(speaker="Atlas", text="Want me to look up flights?", agent=True)],)model.prepare(request) # agent-1x only: encode the earlier lines while the person talksanswer = model.answer(request)print(answer.respond, model.decide(answer)) # 0.97 respond