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

community: fix duplicate content #28003

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

Renzo-vS
Copy link
Contributor

@Renzo-vS Renzo-vS commented Nov 9, 2024

Thank you for reading my first PR!

Description:
Deduplicate content in AzureSearch vectorstore.
Currently, by default, the content of the retrieval is placed both in metadata and page_content of a Document.
This PR removes the content from metadata, and leaves it in page_content.

Issue::
Previously, the content was popped from result before metadata was populated.
In #25828 , the order was changed which leads to a response with duplicated content.
This was not the intention of that PR and seems undesirable.

Looking forward to seeing my contribution in the next version!

Cheers,
Renzo

Copy link

vercel bot commented Nov 9, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 6:24am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. community Related to langchain-community Ɑ: vector store Related to vector store module 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Nov 9, 2024
@eyurtsev
Copy link
Collaborator

If you're doing a bug fix, could you include a test showing what's fixed?

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Nov 20, 2024
@efriis efriis merged commit 567dc1e into langchain-ai:master Nov 20, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:XS This PR changes 0-9 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants