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.tar.gz (269.1 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-py3-none-any.whl (474.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixie_sdk-0.2.16.tar.gz
  • Upload date:
  • Size: 269.1 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.tar.gz
Algorithm Hash digest
SHA256 9bd0e3739f40271e165c684bc154ebdf94fbe162b88e8b30280f11a4dbe809e4
MD5 1a281445da94bcc0a194eb7fd4eee31c
BLAKE2b-256 ffc796e11b29b05c674dcb0a2247f7c24f2bcc2bec897cad07dad68fedcacc56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixie_sdk-0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 474.2 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-py3-none-any.whl
Algorithm Hash digest
SHA256 11bd6afb487911eb8d1425482bdff36dd4cb2889687eac3c8a45dee46815d350
MD5 e46a92fc1deb976bc6ceb0e22000cfcc
BLAKE2b-256 c784752c7765cfa04a6a5734f058d569fd70e8f4905af250199c4ba581603985

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