Generic Voice Agent with templating#245
Open
CoderOMaster wants to merge 5 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new cookbook example for a persona-agnostic LiveKit voice agent that uses MOSS semantic search, plus a CLI utility to build indexes from a directory of markdown/text documents and sample KB content.
Changes:
- Introduces a LiveKit voice agent that lists available MOSS indexes and searches a selected index to ground answers.
- Adds
create_index.pyto create/refresh an index from a provided--docs-dirwith a provided--index-name. - Adds a standalone
pyproject.tomland sample knowledge-base documents for two example indexes.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/cookbook/generic-voice-agent/pyproject.toml | Adds dependency manifest for the example app. |
| examples/cookbook/generic-voice-agent/agent.py | Implements the generic LiveKit voice agent with list_indexes and moss_search tools. |
| examples/cookbook/generic-voice-agent/create_index.py | Adds CLI tool to ingest .md/.txt docs from a directory into a MOSS index. |
| examples/cookbook/generic-voice-agent/docs/product_faq/pricing.md | Sample KB content for pricing questions. |
| examples/cookbook/generic-voice-agent/docs/product_faq/features.md | Sample KB content describing product features. |
| examples/cookbook/generic-voice-agent/docs/customer_support/shipping.md | Sample KB content for shipping/delivery support. |
| examples/cookbook/generic-voice-agent/docs/customer_support/refunds.md | Sample KB content for refunds support. |
| examples/cookbook/generic-voice-agent/docs/customer_support/account.md | Sample KB content for account help. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
yatharthk2
reviewed
May 13, 2026
yatharthk2
reviewed
May 13, 2026
yatharthk2
reviewed
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Please ensure that your PR meets the following requirements:
Description
Adds a generic LiveKit voice agent example powered by MOSS semantic search. The agent is persona-agnostic it dynamically discovers all available MOSS indexes at the start of each conversation and routes user questions to the most relevant one.
The
create_index.pyutility was reworked to read from a directory of.txt/.mdfiles (instead of a hardcodedfaqs.json) and accepts--index-nameand--docs-dirCLI arguments, so any knowledge base can be indexed with a descriptive name (e.g.customer_support,product_faq).Fixes # (issue number)
Type of Change
Files Changed
examples/cookbook/generic-voice-agent/agent.py— LiveKit voice agent withlist_indexesandmoss_searchtools; lazy loads each index into memory on first use for sub-10ms retrievalexamples/cookbook/generic-voice-agent/create_index.py— reworked to ingest any directory of documents; index name is passed via CLI to reflect the use caseexamples/cookbook/generic-voice-agent/pyproject.toml— dependency manifest (livekit-agents,livekit-plugins-*,moss-sdk)examples/cookbook/generic-voice-agent/docs/— sample knowledge base files demonstrating the two-index setup (customer_support,product_faq)