Skip to content

feat: prompt variant #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 12, 2024
Merged

feat: prompt variant #142

merged 3 commits into from
Nov 12, 2024

Conversation

willydouhard
Copy link
Contributor

No description provided.

@@ -61,6 +73,28 @@ def process_response(response):
return gql.GET_PROMPT_VERSION, description, variables, process_response


def create_prompt_variant_helper(
from_lineage_id: Optional[str] = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take we don't want to expose from_version integer.

@@ -1 +1 @@
__version__ = "0.0.629"
__version__ = "0.0.630"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we try to align with 0.1.0 so we know the switch?

@@ -98,13 +99,13 @@ def create_experiment_helper(
api: "LiteralAPI",
name: str,
dataset_id: Optional[str] = None,
prompt_id: Optional[str] = None,
prompt_experiment_id: Optional[str] = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say we call it prompt_variant_id. We should rename it in the platform code too, else it's going to lead to errors.

@desaxce desaxce self-requested a review November 12, 2024 16:45
@desaxce desaxce merged commit d2cae60 into main Nov 12, 2024
2 checks passed
@desaxce desaxce deleted the willy/prompt-variant branch November 12, 2024 16:47
desaxce added a commit that referenced this pull request Nov 12, 2024
* feat: prompt variant

* fix: mypy errors on mistralai

* fix: rename + version bump

---------

Co-authored-by: Hugues de Saxcé <hugues.de.saxce@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants