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

Add pinecone metadata string array support #1518

Merged
merged 2 commits into from
Jun 3, 2023

Conversation

jaclar
Copy link
Contributor

@jaclar jaclar commented Jun 2, 2023

Add pinecone metadata string array support

Pinecone documents support string arrays, so they shouldn't be flattened.
This fix basically removes all arrays from the metadata object which contain only strings and appends them after the remaining metadata object was flattened.

Fixes #1446

Pinecone documents support string arrays, so they shouldn't be flattened
@vercel
Copy link

vercel bot commented Jun 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jun 3, 2023 0:00am

@jacoblee93
Copy link
Collaborator

Fantastic PR, thank you!

@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label Jun 2, 2023
@jacoblee93 jacoblee93 merged commit 486726b into langchain-ai:main Jun 3, 2023
10 checks passed
@Joshua-Shepherd
Copy link

Thanks a ton! I was actually working on this in my own personal project 🙏

@jacoblee93
Copy link
Collaborator

Not announced but 0.0.90 is live with it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addVectors does not support array value in metadata
3 participants