We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I read through the blog at https://www.elastic.co/search-labs/blog/function-calling-with-elastic, and I found two functions defined in the notebook and blog are insconsistent:
The ones defined in the blogs are not correct:
def get_index_mapping(): url = f"""{ES_ENDPOINT}/{ES_INDEX}/_mappings""" headers = { "Content-type": "application/json", "Authorization": f"""ApiKey {ES_API_KEY}""", }
def get_index_mapping(): url = f"""{ES_ENDPOINT}/{ES_INDEX}/_mappings""" headers = { "Content-type": "application/json", "Authorization": f"""ApiKey {ES_API_KEY}""", } resp = requests.request("GET", url, headers=headers) resp = json.loads(resp.text) mapping = json.dumps(resp, indent=4) return mapping
The correct ones are shown in the attached pictures,
The text was updated successfully, but these errors were encountered:
https://github.com/elastic/search-labs-elastic-co/pull/756 PR Raised
Sorry, something went wrong.
Merged. Thanks @liu-xiao-guo for pointing this.
ashishtiwari1993
No branches or pull requests
I read through the blog at https://www.elastic.co/search-labs/blog/function-calling-with-elastic, and I found two functions defined in the notebook and blog are insconsistent:
The ones defined in the blogs are not correct:
The correct ones are shown in the attached pictures,


The text was updated successfully, but these errors were encountered: