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

[Evals] Add retrieval completion fn and example #656

Merged
merged 3 commits into from
Apr 12, 2023
Merged

Conversation

andrew-openai
Copy link
Contributor

No description provided.

jwang47
jwang47 previously approved these changes Apr 12, 2023
Copy link
Contributor

@jwang47 jwang47 left a comment

Choose a reason for hiding this comment

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

It would be nice to move away from notebooks which add to the registry, but that would require a bit of extra work to add a new feature to dynamically download/load these files so no need to put it in this PR.

"""
# Embed the prompt
embedded_prompt = openai.Embedding.create(
model="text-embedding-ada-002", input=CompletionPrompt(prompt).to_formatted_prompt()
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make the model a constructor parameter to make it more customizable.

@andrew-openai andrew-openai merged commit c0dbe9d into main Apr 12, 2023
1 check passed
@andrew-openai andrew-openai deleted the andrew/retrieval branch April 12, 2023 23:16
Linmj-Judy pushed a commit to TablewareBox/evals that referenced this pull request Feb 27, 2024
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.

None yet

2 participants