File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
elasticsearch/helpers/vectorstore Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ def __init__(
8383 # client.options preserves existing (non-user-agent) headers.
8484 client = client .options (headers = {"User-Agent" : user_agent })
8585
86- if hasattr (retrieval_strategy , "text_field" ) and retrieval_strategy .text_field is None :
86+ if (
87+ hasattr (retrieval_strategy , "text_field" )
88+ and retrieval_strategy .text_field is None
89+ ):
8790 retrieval_strategy .text_field = text_field
8891
8992 self .client = client
Original file line number Diff line number Diff line change @@ -80,7 +80,10 @@ def __init__(
8080 # client.options preserves existing (non-user-agent) headers.
8181 client = client .options (headers = {"User-Agent" : user_agent })
8282
83- if hasattr (retrieval_strategy , "text_field" ) and retrieval_strategy .text_field is None :
83+ if (
84+ hasattr (retrieval_strategy , "text_field" )
85+ and retrieval_strategy .text_field is None
86+ ):
8487 retrieval_strategy .text_field = text_field
8588
8689 self .client = client
You can’t perform that action at this time.
0 commit comments