-
Notifications
You must be signed in to change notification settings - Fork 16.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
weaviate: Add-deprecation-warning #29757
Merged
+12
−0
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
04d4d69
Add deprecation warning for weaviate related classes
hsm207 02bcf7e
fix imports
hsm207 7858d0a
fix imports
hsm207 b0b8004
remove warning from langchain_community.__init__
ccurme ca9fe7d
use deprecated decorator
ccurme cdc29c4
lint
ccurme a013bc9
fix
ccurme 636b6af
replace warnings with deprecated decorator for WeaviateHybridSearchRe…
hsm207 1056756
lint
hsm207 616af10
Merge branch 'master' into add-deprecation-warning
hsm207 2c70322
remove warning from query constructor
ccurme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do replacements for
WeaviateHybridSearchRetriever
andWeaviateTranslator
exist in langchain-weaviate?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A replacement for
WeaviateHybridSearchRetriever
already exists in langchain-weaviate.WeaviateTranslator
has no replacement.Before discussing migration, what’s the intended scope of
WeaviateTranslator
?Weaviate has introduced many new query features over the years (multi-tenancy, named vectors, multi-target search). If
WeaviateTranslator
is meant to support everything, I'm not sure LLM-based structured query generation can reliably handle this. If it’s just for basic NL queries, we can scope an update accordingly.Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL queries is likely fine.
WeaviateTranslator
is used to support LLM-generated filters and other structured queries (see docs here). I removed the warning on that module for now. If/when it's supported in langchain-weaviate we can deprecate it in community.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccurme What's the expected behaviour if the user NL query can't be parsed correctly? For example:
This will work:
But this won't, because the translator does not support parsing multi tenancy-related terms, although I see the the prompt the LLM use could theoretically be tweaked to extract it from the natural language query:
Do we just pass the query to the vector db and let it throw an exception or are there some checks being done earlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detecting unsupported features and raising an exception is ideal.
Letting DB throw an exception is OK. My main concern is making sure that, if there are current users of self-query retriever with weaviate and we deprecate the community integration, we can give concrete instructions about what we recommend they do.