Skip to content

langchain[patch]: Adds metadata to vectorstore retriever memory #5093

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

Conversation

MJDeligan
Copy link
Contributor

As per #3107 .

Adds a metadata field to VectorStoreRetreiverMemory, which automatically adds metadata to the created documents.

Includes:

  • Metadata field as either a metadata object or a function returning a metadata object.
  • Tests
  • Extended Example with metadata usage

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 13, 2024
Copy link

vercel bot commented Apr 13, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2024 2:47am
langchainjs-docs ✅ Ready (Inspect) Visit Preview Apr 18, 2024 2:47am

@jacoblee93
Copy link
Collaborator

Looks reasonable, thank you!

@jacoblee93 jacoblee93 changed the title Adds metadata to vectorstore retriever memory langchain[patch]: Adds metadata to vectorstore retriever memory Apr 15, 2024
@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases lgtm PRs that are ready to be merged as-is size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants