diff --git a/CHANGELOG.md b/CHANGELOG.md index a7145fd..c9e4183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,3 +27,7 @@ ## [0.2.7] - 2025-03-07 - Fixed generation update and model field in traces. + +## [0.2.8] - 2025-23-07 + +- Prompt management diff --git a/Gemfile.lock b/Gemfile.lock index 849e3da..6a78e68 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - llm_eval_ruby (0.2.7) + llm_eval_ruby (0.2.8) httparty (~> 0.22.0) liquid (~> 5.5.0) diff --git a/lib/llm_eval_ruby/api_clients/langfuse.rb b/lib/llm_eval_ruby/api_clients/langfuse.rb index f4aa273..02fa966 100644 --- a/lib/llm_eval_ruby/api_clients/langfuse.rb +++ b/lib/llm_eval_ruby/api_clients/langfuse.rb @@ -23,6 +23,17 @@ def fetch_prompt(name:, version:) response["prompt"] end + # query: + # name + # label + # tag + # page + # limit + def get_prompts(query={}) + response = self.class.get("/v2/prompts", { query: query }) + response["data"] + end + # We are using the same method for updating trace # Langfuse does an upsert if id is given def create_trace(params = {}) diff --git a/lib/llm_eval_ruby/version.rb b/lib/llm_eval_ruby/version.rb index 150d32b..6f25c95 100644 --- a/lib/llm_eval_ruby/version.rb +++ b/lib/llm_eval_ruby/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module LlmEvalRuby - VERSION = "0.2.7" + VERSION = "0.2.8" end