Skip to content

Phospho examples

Python

Logging

Set up phospho logging in your app. Run pip install -U phospho and get a minimal, powerful logging system.

  • OpenAI agent


    A simple generic assistant in the CLI, logging to phospho.

    View Example

  • OpenAI agent + Streamlit


    An OpenAI assistant in Streamlit, logging to phospho.

    View Example

  • url2chat: Chat with any website


    Streamlit webapp logging messages and user feedback to phospho.

    View Example

  • Langchain Python


    A simple Langchain retrieval chain, logging to phospho.

    View Example

Lab

Run these examples locally to discover phospho. Just pip install -U "phospho[lab]" and get hacking.

  • Quickstart


    How to run the Event detection pipeline on a dataset and optimize the pipeline.

    View Example

  • Create a Custom Job


    How to create a custom job and run it with phospho lab.

    View Example

  • Parallel calls to OpenAI on a dataset


    How to run parallel calls to OpenAI on a dataset with parallelization, while respecting rate limits.

    View Example

More Python!

  • More Python examples


    Check out the examples on GitHub!

    View Examples

JavaScript

Run npm i phospho and get a minimal, powerful logging system.

  • Discover JavaScript examples


    Check out the examples on GitHub!

    View Examples

Other

  • Supabase


    Implement phospho logging in your Supabase app.

    View Example

  • :material-discord:{ .lg .middle } Can't find your example?


    Tell us what you need on Discord!

    Join Us