Skip to main content

Interactive debugging tool for AI applications

Project description

Pixie

MIT License Python Version Discord

Generate Evals from debugging LLM Applications

Evals takes a lot of effort to setup, and the results are not always helpful. What if we can generate evals automatically based on how you debug your LLM applications?

Demo

Demo

Get Started

1. Setup

In your project folder, install pixie-sdk package:

pip install pixie-sdk

Start the local debug server by running:

pixie

2. Connect Your Application

Add @pixie.session decorator to any code you'd like to debug, use pixie.print(...) to log data to the debugger UI.

# my_chatbot.py
import asyncio
from pydantic_ai import Agent
import pixie.sdk as pixie

# You can implement your application using any major AI development framework
agent = Agent(
    name="Simple chatbot",
    instructions="You are a helpful assistant.",
    model="gpt-4o-mini",
)


@pixie.session
async def my_chatbot():
    """Chatbot application example."""
    await pixie.print("How can I help you today?")
    messages = []
    while True:
        user_msg = await asyncio.to_thread(input)
        await pixie.print(user_msg, from_user=True)
        response = await agent.run(user_msg, message_history=messages)
        messages = response.all_messages()
        await pixie.print(response.output)

3. Debug with web UI

Visit the web UI gopixie.ai to start debugging. Run your application as normal while pixie debug server is running, and your session would show up in the debugger UI.

Important Links

  • Documentation - Complete documentation with tutorials and API reference
  • Examples - Real-world examples and sample applications
  • Demo - Live Demo with the examples server setup
  • Discord - Join our community for support and discussions

Acknowledgments

This project is built on top of many awesome open-source projects:

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

pixie_sdk-0.2.16.dev6.tar.gz (269.5 kB view details)

Uploaded Source

Built Distribution

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

pixie_sdk-0.2.16.dev6-py3-none-any.whl (474.1 kB view details)

Uploaded Python 3

File details

Details for the file pixie_sdk-0.2.16.dev6.tar.gz.

File metadata

  • Download URL: pixie_sdk-0.2.16.dev6.tar.gz
  • Upload date:
  • Size: 269.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for pixie_sdk-0.2.16.dev6.tar.gz
Algorithm Hash digest
SHA256 4e01a19eb750bae5dcd2461fa5ee02e592cd0cdbe0dd1b77c7e0660842fb35e6
MD5 8ecb04fb86a021aaacc28ebc0601227f
BLAKE2b-256 a55c4a6b1c5875d116b6293faa1cf16ea73d97d8f8d8f7d829cef5dd7a356390

See more details on using hashes here.

File details

Details for the file pixie_sdk-0.2.16.dev6-py3-none-any.whl.

File metadata

  • Download URL: pixie_sdk-0.2.16.dev6-py3-none-any.whl
  • Upload date:
  • Size: 474.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for pixie_sdk-0.2.16.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8627e3e5f09d95a1fc305a8d659630a38d2efd81653d6ca024bd7cea12835d
MD5 74ab7dbaaea731d64a0bce9f3831f2e2
BLAKE2b-256 0dbbdc1ae2b6c1087c434345efd4fb4f68f3cc88b888fc78a129e1e5bdef2774

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