Open Netmees opened 1 year ago
Make sure to use last version of ElasticSearch... you probably run different version on the client side (python lib).
If you want to run with 7 you have to :
pip install elasticsearch==7.17
and pip install eland==7.14.1b1
to match the major versions on the Python side...
My local version (below) is ok (auth) with the script, but script failed to run properly because of other issues in the code (search/field miss match)... I will like that someone confirm a successful configuration (local)... so far no success.
Note make sure to change:
#es = Elasticsearch(cloud_id=cid, http_auth=(user, passwd))
to
es = Elasticsearch(cid, http_auth=(user, passwd))
version |
-- | --
number | "8.9.0"
build_flavor | "default"
build_type | "deb"
build_snapshot | false
lucene_version | "9.7.0"
minimum_wire_compatibility_version | "7.17.0"
minimum_index_compatibility_version | "7.0.0"
tagline | "You Know, for Search"
I finally made it work locally, my mistake was my advice :-). My own elastic python agent was not at the last version. After updating elasticsearch and eland library the script elasticdocs_gpt.py is running as expected!
I finally made it work locally, my mistake was my advice :-). My own elastic python agent was not at the last version. After updating elasticsearch and eland library the script elasticdocs_gpt.py is running as expected!
How did you get it to search against your local elasticsearch data? I keep getting "ChatGPT: I'm unable to answer the question based on the information I have from Elastic Docs" for whatever I try to search. Thank you
i am getting this Error: UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product { "version" : { "number" : "7.10.2", "build_flavor" : "oss", "build_type" : "rpm", "build_snapshot" : false, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
and the modification for the script...
def es_connect(url, user, passwd):
Establecer la URL y las credenciales de autenticación
Search ElasticSearch index and return body and URL of the result
def search(query_text): url = "https://localhost:9200" # URL del clúster local user = "" # Nombre de usuario para acceder al clúster passwd = "" # Contraseña para acceder al clúster es = es_connect(url, user, passwd) verify_certs=False
i think that the error comes from the oss flavour not suported....