-
Notifications
You must be signed in to change notification settings - Fork 1
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
renamed MetadataDenormalizer into ShreddingTransformer #132
Conversation
Pull Request Test Coverage Report for Build 13197993119Details
💛 - Coveralls |
Test Results 8 files ±0 8 suites ±0 2m 28s ⏱️ -3s Results for commit 2ddcf0a. ± Comparison against base commit c61b19f. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
|
@@ -15,7 +15,7 @@ __Supported__ | |||
|
|||
__Collection Support__ | |||
|
|||
: Indicates whether the store supports lists in metadata values or not. Stores which do not support it directly (:material-alert-circle:{.yellow}) can be used by applying the [MetadataDenormalizer][langchain_graph_retriever.transformers.metadata_denormalizer.MetadataDenormalizer] document transformer to documents before writing, which spreads the items of the collection into multiple metadata keys. | |||
: Indicates whether the store supports lists in metadata values or not. Stores which do not support it directly (:material-alert-circle:{.yellow}) can be used by applying the [ShreddingTransformer][langchain_graph_retriever.transformers.ShreddingTransformer] document transformer to documents before writing, which spreads the items of the collection into multiple metadata keys. |
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.
Should this be formatted as code (backticks)? Or should we not use them elsewhere?
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.
yes I can add 'em
The [Adapter][graph_retriever.adapters.Adapter] interface may be implemented directly. For LangChain [VectorStores][langchain_core.vectorstores.base.VectorStore], [LangchainAdapter][langchain_graph_retriever.adapters.langchain.LangchainAdapter] and [ShreddedLangchainAdapter][langchain_graph_retriever.adapters.langchain.ShreddedLangchainAdapter] provide much of the necessary functionality. |
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.
It may make sense to be consistent on ShreddingTrannsformer
vs. ShreddedLangchainAdapter
(eg., ShreddingLangchainAdapter
?)
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.
the adapters use already shredded documents. That is why I used Shredded instead of Shredding.
But I'll change to make consistent if you feel that is better.
from langchain_community.document_transformers.metadata_denormalizer import ( | ||
MetadataDenormalizer, | ||
) | ||
from langchain_community.document_transformers import ShreddingTransformer |
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.
I do not believe this is part of langchain_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.
oops, good catch
No description provided.