Hacker News new | ask | show | jobs
Show HN: Debug your AI application in web browser (github.com)
1 points by yol 158 days ago
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!

1 comments

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