Skip to content
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

[OPIK-318] - [Prompt library] SDK Prompt implementation - create/get #557

Merged
merged 20 commits into from
Nov 7, 2024

Conversation

japdubengsub
Copy link
Contributor

@japdubengsub japdubengsub commented Nov 4, 2024

Details

Basic implementation of the create() and get() API methods.
Added a class named Prompt for manual initialization.
You can use:

import opik

client = opik.Opik()
prompt = client.create_prompt(name="classification", prompt="some template")

or

from opik import Prompt
prompt = Prompt(name="classification", prompt="some template")

Testing

e2e tests are added

@japdubengsub japdubengsub changed the title OPIK-318 OPIK-318 - [Prompt library] SDK Prompt implementation - create/get Nov 6, 2024
@japdubengsub japdubengsub changed the title OPIK-318 - [Prompt library] SDK Prompt implementation - create/get [OPIK-318] - [Prompt library] SDK Prompt implementation - create/get Nov 6, 2024
@japdubengsub japdubengsub marked this pull request as ready for review November 6, 2024 13:05
@japdubengsub japdubengsub requested a review from a team as a code owner November 6, 2024 13:05
alexkuzmik
alexkuzmik previously approved these changes Nov 6, 2024
@ferc ferc merged commit 02f2835 into main Nov 7, 2024
21 checks passed
@ferc ferc deleted the OPIK-318 branch November 7, 2024 11:01
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.

3 participants