elastic_transformers
elastic_transformers copied to clipboard
RequestError: RequestError(400, 'search_phase_execution_exception', 'runtime error')
trafficstars
when I run Searching_with_ElasticTransformers.ipynb, this bug showed up: import logging logging.getLogger().setLevel(logging.DEBUG)
query='4G智能移动单兵'
print('CONTEXTUAL SEARCH RESULTS...') df1=et.search(query,'Title',type='dense',embedder=embed_wrapper, size = 1000) display(select_search_results(df1))
Then, What is the cause of this bug?
Just install ES 7.8, the notebook's output return normally. @ScottishFold007 https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docker.html
self.es.search( index=index_name, body={ "size": size, "query": script_query, "_source": {"includes": [f'{field}_embedding']} } )