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.
-
OpenAI agent + Streamlit
An OpenAI assistant in Streamlit, logging to phospho.
-
url2chat: Chat with any website
Streamlit webapp logging messages and user feedback to phospho.
-
Langchain Python
A simple Langchain retrieval chain, logging to phospho.
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.
-
Create a Custom Job
How to create a custom job and run it with phospho lab.
-
Parallel calls to OpenAI on a dataset
How to run parallel calls to OpenAI on a dataset with parallelization, while respecting rate limits.
More Python!
-
More Python examples
Check out the examples on GitHub!
JavaScript
Run npm i phospho
and get a minimal, powerful logging system.
-
Discover JavaScript examples
Check out the examples on GitHub!
Other
-
Supabase
Implement phospho logging in your Supabase app.
-
:material-discord:{ .lg .middle } Can't find your example?
Tell us what you need on Discord!