-
Notifications
You must be signed in to change notification settings - Fork 16k
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
Pass kwargs to get OpenSearch client from_texts #2993
Pass kwargs to get OpenSearch client from_texts #2993
Conversation
# Remove the opensearch_url from kwargs to avoid passing | ||
# the value twice for argument opensearch_url | ||
kwargs.pop("opensearch_url") | ||
client = _get_opensearch_client(opensearch_url, **kwargs) |
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.
what about all the other kwargs below?
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.
Sorry, didn't get your question?
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.
there are a lot of other arguments in "kwargs" that we use below. do we want to pop them as well? or are they relevant for the client
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.
Got it. I have updated the code to pop all those arguments before getting the opensearch client.
e3df0e4
to
47d650e
Compare
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
47d650e
to
231ae4e
Compare
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.
thanks!
### Description Pass kwargs to get OpenSearch client from `from_texts` function ### Issues Resolved langchain-ai#2819 Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Description
Pass kwargs to get OpenSearch client from
from_texts
functionIssues Resolved
#2819