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

feat: add openai_embed function #2538

Merged
merged 18 commits into from
Jan 31, 2024
Merged

Conversation

universalmind303
Copy link
Contributor

todo:

  • integration tests & slts

"text-embedding-3-small" => Ok(EmbeddingModel::TextEmbedding3Small),
"text-embedding-ada-002" => Ok(EmbeddingModel::TextEmbeddingAda002),
"text-embedding-3-large" => Ok(EmbeddingModel::TextEmbedding3Large),
_ => Err(DataFusionError::Execution("Invalid model name".to_string())),
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice if we could return the available models in this error to keep the user from needing to guess.

@universalmind303 universalmind303 merged commit 56f8d38 into main Jan 31, 2024
22 checks passed
@universalmind303 universalmind303 deleted the universalmind303/ai-embed-udf branch January 31, 2024 23:23
tychoish pushed a commit that referenced this pull request Feb 1, 2024
todo: 

- [ ] integration tests & slts
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