Settings

Theme

Show HN: Debug your AI application in web browser

github.com

1 points by yol 4 months ago · 1 comment · 1 min read

Reader

Hi HN,

I'm Bryan. I built an open-source project for debugging your AI applications interactively through a web UI with just a few lines of setup.

You can require user input mid-execution, pause/resume, and look at traces in real time.

Here's a demo of how debugging looks like: https://www.loom.com/share/6d419cfe20884b3994121697377b2a7e

Here's how to setup:

- Start local debug server `pip install pixie-sdk && pixie`

- Link application to Pixie

```python # register entry point function or generator @pixie.app async def my_agent(query): results = await search(query)

    # Pauses here, prompts for input in web UI
    selection = yield pixie.InputRequired(int)
    
    return await summarize(results[selection])
```

- Open gopixie.ai to debug

Would this save you time? Would love to hear your thoughts!

yolOP 4 months ago

And here's a working demo, with example applications built with various AI dev frameworks:

https://gopixie.ai/?url=https%3A%2F%2Fdemo.yiouli.us%2Fgraph...

The example repo code is here: https://github.com/yiouli/pixie-examples

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection