Skip to content

Update qdrant.py #1088

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

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Update qdrant.py #1088

merged 1 commit into from
Feb 16, 2023

Conversation

rishabh-ti
Copy link
Contributor

Fixes #1087

@hwchase17 hwchase17 merged commit 5d11e5d into langchain-ai:master Feb 16, 2023
@kacperlukawski
Copy link
Contributor

@rishabh-ti That's actually causing the issue, not solving it. Qdrant stores the document content with "page_content" key (check out https://github.com/hwchase17/langchain/blob/6322b6f657b8f630c72d6c321ece0e513b2ba35f/langchain/vectorstores/qdrant.py#L218). If you now read it from a different key, then you break the integration.

@hwchase17 Can we revert those changes? I want to verify the root cause and provide a fix, but that PR actually introduces the same bug like described in #1087

kacperlukawski added a commit to kacperlukawski/langchain that referenced this pull request Feb 16, 2023
hwchase17 pushed a commit that referenced this pull request Feb 16, 2023
The #1088 introduced a bug in Qdrant integration. That PR reverts those
changes and provides class attributes to ensure consistent payload keys.
In addition to that, an exception will be thrown if any of texts is None
(that could have been an issue reported in #1087)
dongreenberg pushed a commit to dongreenberg/langchain that referenced this pull request Feb 17, 2023
@blob42 blob42 mentioned this pull request Feb 21, 2023
zachschillaci27 pushed a commit to zachschillaci27/langchain that referenced this pull request Mar 8, 2023
zachschillaci27 pushed a commit to zachschillaci27/langchain that referenced this pull request Mar 8, 2023
…in-ai#1093)

The langchain-ai#1088 introduced a bug in Qdrant integration. That PR reverts those
changes and provides class attributes to ensure consistent payload keys.
In addition to that, an exception will be thrown if any of texts is None
(that could have been an issue reported in langchain-ai#1087)
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.

Qdrant Wrapper issue: _document_from_score_point exposes incorrect key for content
3 participants