Add a feature to filter documents by field names and allow concatenation in MongodbLoader #18251
iamKushagra
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
The proposed enhancement aims to add flexibility to the MongodbLoader class in LangChain by introducing an optional feature for field filtering. Currently, the loader retrieves the whole documents. This proposal suggests making field filtering optional, allowing users to choose between filtering specific fields or including the entire document content.
Motivation
The motivation behind this enhancement is to provide users with more control over the loading process. In some scenarios, users may prefer to load some fields or in some case the entire document content as text without specifying individual fields. By making field filtering optional, we accommodate both use cases, enhancing the usability of the MongodbLoader class.
Proposal (If applicable)
Introduce Optional Parameter: Add an optional boolean parameter, filter_fields, to the constructor of MongodbLoader. This parameter will determine whether field filtering should be applied.
Beta Was this translation helpful? Give feedback.
All reactions