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

weaviate[minor]: Add Document className as metadata #7486

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rolando-cruz
Copy link

Description

  • Added className as part of Document metadata.

Why

  • If we have multiple weaviate classes and use wrapper retrievers like EnsembleRetriever, we don't know where the docs are coming from.

Copy link

vercel bot commented Jan 8, 2025

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ❌ Failed (Inspect) Jan 8, 2025 7:39pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Jan 8, 2025 7:39pm

@rolando-cruz rolando-cruz marked this pull request as ready for review January 8, 2025 19:28
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Jan 8, 2025
metadata: rest,
metadata: {
...rest,
className: this.indexName
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just call it indexName instead of className?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could but the idea is to export the className metadata field from weaviate. Since we are exporting this field in the Document interface metadata field, I would think is even safer to use className to avoid any field name collision.

PD: Thanks for the fast feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants