Skip to content

Commit 3f3bb30

Browse files
Switching to using elastic cloud ID instead of serverless endpoint
1 parent cdf1b8c commit 3f3bb30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

notebooks/document-chunking/configuring-chunking-settings-for-inference-endpoints.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"For this example, you will need:\n",
2424
"\n",
2525
"- An Elastic deployment:\n",
26-
" - We'll be using [Elastic serverless](https://www.elastic.co/docs/current/serverless) for this example (available with a [free trial](https://cloud.elastic.co/registration?utm_source=github&utm_content=elasticsearch-labs-notebook))\n",
26+
" - We'll be using [Elastic Cloud](https://www.elastic.co/guide/en/cloud/current/ec-getting-started.html) for this example (available with a [free trial](https://cloud.elastic.co/registration?onboarding_token=vectorsearch&utm_source=github&utm_content=elasticsearch-labs-notebook))\n",
2727
"\n",
2828
"- Elasticsearch 8.16 or above.\n",
2929
"\n",
@@ -75,7 +75,7 @@
7575
},
7676
{
7777
"cell_type": "code",
78-
"execution_count": 2,
78+
"execution_count": 13,
7979
"id": "690ff9af",
8080
"metadata": {},
8181
"outputs": [],
@@ -91,19 +91,19 @@
9191
"source": [
9292
"Now we can instantiate the Python Elasticsearch client.\n",
9393
"\n",
94-
"First provide your API key and Serverless Endpoint.\n",
95-
"Then create a `client` object that instantiates an instance of the `Elasticsearch` class."
94+
"First we prompt the user for their password and Cloud ID.\n",
95+
"Then we create a `client` object that instantiates an instance of the `Elasticsearch` class."
9696
]
9797
},
9898
{
9999
"cell_type": "code",
100-
"execution_count": 5,
100+
"execution_count": null,
101101
"id": "195cc597",
102102
"metadata": {},
103103
"outputs": [],
104104
"source": [
105105
"# https://www.elastic.co/search-labs/tutorials/install-elasticsearch/elastic-cloud#finding-your-cloud-id\n",
106-
"ELASTIC_SERVERLESS_ENDPOINT = getpass(\"Elastic serverless endpoint: \")\n",
106+
"ELASTIC_CLOUD_ID = getpass(\"Elastic Cloud ID: \")\n",
107107
"\n",
108108
"# https://www.elastic.co/search-labs/tutorials/install-elasticsearch/elastic-cloud#creating-an-api-key\n",
109109
"ELASTIC_API_KEY = getpass(\"Elastic Api Key: \")\n",
@@ -112,7 +112,7 @@
112112
"client = Elasticsearch(\n",
113113
" # For local development\n",
114114
" # hosts=[\"http://localhost:9200\"],\n",
115-
" hosts=[ELASTIC_SERVERLESS_ENDPOINT],\n",
115+
" cloud_id=ELASTIC_CLOUD_ID,\n",
116116
" api_key=ELASTIC_API_KEY,\n",
117117
" request_timeout=120,\n",
118118
" max_retries=10,\n",
@@ -281,7 +281,7 @@
281281
"<a name=\"conclusion\"></a>\n",
282282
"## Conclusion\n",
283283
"\n",
284-
"You've now learned how to configure chunking settings for an inference endpoint! For more infomration about configurable chunking, see the [configuring chunking](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html#infer-chunking-config) documentation."
284+
"You've now learned how to configure chunking settings for an inference endpoint! For more information about configurable chunking, see the [configuring chunking](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html#infer-chunking-config) documentation."
285285
]
286286
}
287287
],

0 commit comments

Comments
 (0)