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

Convert numpy arrays to lists in HuggingFaceEmbeddings #714

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

kacperlukawski
Copy link
Contributor

SentenceTransformer returns a NumPy array, not a List[List[float]] or List[float] as specified in the interface of Embeddings. That PR makes it consistent with the interface.

@hwchase17 hwchase17 merged commit d4f719c into langchain-ai:master Jan 24, 2023
@kacperlukawski kacperlukawski deleted the hf-embedding-types branch February 17, 2023 09:15
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