Prompt version only create when different #2161
Replies: 3 comments 4 replies
-
|
Thanks for raising this, @brightsparc. I see how this could be a better behavior for workflows where many new prompt versions are published via API, and some idempotency would be beneficial. Currently not on the roadmap yet, would love to track interest for this here! |
Beta Was this translation helpful? Give feedback.
-
|
Linking to this blogpost for more on idempotency & a nice workaround. |
Beta Was this translation helpful? Give feedback.
-
@marcklingen , is there any chance of making this feature happen near future. Because same prompt on all the versions during application runtime increases db storage. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature or potential improvement
I'm looking into the prompt management: https://langfuse.com/docs/prompts/get-started#createupdate-prompt and it seems that create_prompt will always create a new version regardless if the payload has changed.
It would be nice if this behaviour more like git. Have you considered maybe creating a hash of the contents, and only creating a new version when anything changes. This would avoid the situation where a new version is created that is identical to the previous.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions