Skip to main content

Analytics and Evaluation Tool for Voice Agents

Project description

MixedVoices: Analytics and Evals for Voice Agents

PyPI version Documentation

MixedVoices is an analytics and evaluation tool for voice agents. Track, visualize, and optimize agent performance through conversation analysis, call quality metrics and call flow charts. Run simulations to test the agent before pushing to production.

Features

Core Capabilities

  • 🌐 Effortless Integration: Python API designed for quick integration, get started in minutes
  • 🖥️ Interactive Dashboard: User-friendly interface for all operations
  • 📊 Call Flow Analysis: Interactive flowcharts showing conversation paths, patterns and success rates
  • 🔄 Version Control: Track and compare agent behavior across different iterations
  • 🎯 ML Performance Metrics: Track hallucinations, call scheduling, conciseness, and empathy scores
  • 📱 Call Quality Analysis: Monitor interruptions, latency, signal-to-noise ratio, and words per minute
  • 🧪 Agent Evaluation: Test and validate agent performance through simulations and stress testing

Installation

pip install mixedvoices

Quick Start

Analytics

Using Python API to analyze recordings

import mixedvoices as mv
from mixedvoices.metrics import Metric, empathy # empathy is an inbuilt metric

# binary=>PASS/FAIL, continuous=>0-10
custom_metric = Metric(name="custom", definition="....", scoring="binary") 

# Create or load a project
project = mv.create_project("dental_clinic", metrics=[empathy, custom_metric])
project = mv.load_project("dental_clinic")  # or load existing project

v1 = project.create_version("v1", prompt="You are a ...") # Create a version
v1 = project.load_version("v1") # or load existing version

# Analyze call, this is blocking, takes a few seconds
v1.add_recording("path/to/call.wav")

# non blocking mode in a separate thread, instantaneous
v1.add_recording("path/to/call.wav", blocking=False)

Evaluation

Evaluate custom agent

import mixedvoices as mv
from typing import Tuple

# Create agent by inheriting from BaseAgent. Must implement respond
class DentalAgent(mv.BaseAgent):
    def __init__(self, model="gpt-4"):
        self.agent = YourAgentImplementation(model=model)

    def respond(self, input_text: str) -> Tuple[str, bool]:
        response = self.agent.get_response(input_text)
        has_conversation_ended = check_conversation_ended(response)
        return response, has_conversation_ended

project = mv.load_project("receptionist")
v1 = project.load_version("v1")

# Generate test cases using multiple sources
test_generator = mv.TestCaseGenerator(v1.prompt)
test_generator.add_from_transcripts([transcript])  # Add from conversation transcripts
test_generator.add_edge_cases(2)  # Add edge cases
test_generator.add_from_descriptions(["A man from New York, in a hurry"]) # Add from descriptions
test_generator.add_from_project(project)  # Add based on project's recordings
test_generator.add_from_version(v1)  # Add based on version's recordings
test_cases = test_generator.generate()

# Create and run evaluator, can use a subset of metrics
evaluator = project.create_evaluator(test_cases, metric_names=["empathy"])
evaluator.run(v1, DentalAgent, agent_starts=False, model="gpt-4o")

Evaluate Bland AI Agent

# same as above, except instead of defining custom agent, can directly use mv.BlandAgent
evaluator.run(v1, mv.BlandAgent, agent_starts=True, auth_token="", pathway_id="", start_node_id="") 

Using Dashboard

Launch the interactive dashboard from the Command Line:

mixedvoices dashboard

Choosing Models

You can configure the models being used for different tasks from the Command Line

mixedvoices config

Development Setup

git clone https://github.com/MixedVoices/MixedVoices.git
pip install -e ".[dev]"

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Roadmap

  • Support other APIs and Open Source LLMs
  • Team collaboration features
  • Custom analytics plugins
  • Advanced evaluation scenarios
  • Custom metric definitions for evaluation

Made with ❤️ by the MixedVoices Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mixedvoices-1.0.0.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mixedvoices-1.0.0-py3-none-any.whl (104.9 kB view details)

Uploaded Python 3

File details

Details for the file mixedvoices-1.0.0.tar.gz.

File metadata

  • Download URL: mixedvoices-1.0.0.tar.gz
  • Upload date:
  • Size: 76.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for mixedvoices-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a9989939f49dfcc9efebcbc768e49e889bd5ccad62e98cd126d455ffd2dd6d98
MD5 424a8b488d0995eb4b9e9bc74e9a4d33
BLAKE2b-256 866a3d8b0a24791960cadea826f255d2da57f977c92c564c708b63893982cdd7

See more details on using hashes here.

File details

Details for the file mixedvoices-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mixedvoices-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 104.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for mixedvoices-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5e7f488824034c8c1afd4860ab7221e70574178f5596d028e0d4622dc24876
MD5 dd3f149ad9421f148d771c1d0f4e2e9b
BLAKE2b-256 61b629c1c774c7482bd78354421411225ba815de37749f534ea77d4dafb7e171

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page