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: Added missing from_documents method to KNNRetriever. #18411

Merged

Conversation

victoradan
Copy link
Contributor

  • Description: Added missing from_documents method to KNNRetriever, providing the ability to supply metadata to LangChain Documents, and to give it parity to the other retrievers, which do have from_documents.
  • Issue: None
  • Dependencies: None
  • Twitter handle: None

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Ɑ: retriever Related to retriever module 🔌: milvus Primarily related to Milvus vector store integration 🤖:improvement Medium size change to existing code to handle new use-cases labels Mar 2, 2024
Copy link

vercel bot commented Mar 2, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 11:15pm

@victoradan
Copy link
Contributor Author

Can someone clarify what's needed to move this forward? Thanks.

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Mar 28, 2024
@baskaryan baskaryan enabled auto-merge (squash) March 28, 2024 23:15
@baskaryan baskaryan merged commit afa2d85 into langchain-ai:master Mar 28, 2024
59 checks passed
gkorland pushed a commit to FalkorDB/langchain that referenced this pull request Mar 30, 2024
langchain-ai#18411)

- Description: Added missing `from_documents` method to `KNNRetriever`,
providing the ability to supply metadata to LangChain `Document`s, and
to give it parity to the other retrievers, which do have
`from_documents`.
- Issue: None
- Dependencies: None
- Twitter handle: None

Co-authored-by: Victor Adan <[email protected]>
Co-authored-by: Bagatur <[email protected]>
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
#18411)

- Description: Added missing `from_documents` method to `KNNRetriever`,
providing the ability to supply metadata to LangChain `Document`s, and
to give it parity to the other retrievers, which do have
`from_documents`.
- Issue: None
- Dependencies: None
- Twitter handle: None

Co-authored-by: Victor Adan <[email protected]>
Co-authored-by: Bagatur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. 🔌: milvus Primarily related to Milvus vector store integration Ɑ: retriever Related to retriever module size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants