Allow triggering Prompt Experiments programmatically (via public API) #9131
elevemonkey
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
|
Thanks for sharing. Currently this is not available, let's track interest for this here. The recommended approach for regression testing would be to run an experiment via the SDKs, thereby you have full control and can run this in your own environment: https://langfuse.com/docs/evaluation/dataset-runs/remote-run The trpc routes are as you mentioned not meant to be used directly as they are UI-only. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature or potential improvement
Feature Request: Allow triggering Prompt Experiments programmatically (via public API)
Hi Langfuse team 👋,
Thanks for the amazing work on Langfuse — it's been a game changer for managing prompt evaluations!
Context
I’m currently building an automated evaluation pipeline where:
This is essential for running automated regression tests and maintaining prompt quality at scale.
Current Limitation
Right now, Prompt Experiments can only be triggered manually through the UI, which is not ideal for automation.
I noticed that the Langfuse UI calls the internal endpoint:
POST /api/trpc/experiments.createExperiment
However, this endpoint:
What I'm Requesting
Could you please consider:
trpc/experiments.createExperiment, with documented input parameters, orWhy It Matters
Having a way to programmatically trigger experiments would:
This would be a huge boost for any team doing continuous prompt tuning and evaluation.
Let me know if there's a current workaround (e.g. experimental API, remote evaluation trigger), or if something is already on the roadmap!
Thanks again 🙏
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions