Skip to content

Commit

Permalink
[DOCS] Adds note to inference notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Mar 26, 2024
1 parent b1d37b9 commit 554f62c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion notebooks/search/07-inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"- An Elastic deployment:\n",
" - 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?utm_source=github&utm_content=elasticsearch-labs-notebook))\n",
"\n",
"- Elasticsearch 8.13 or above.\n",
"- Elasticsearch 8.12 or above.\n",
" \n",
"- A paid [OpenAI account](https://openai.com/) is required to use the Inference API with \n",
"the OpenAI service as the OpenAI free trial API usage is limited. "
Expand Down Expand Up @@ -181,6 +181,14 @@
")"
]
},
{
"cell_type": "markdown",
"id": "1f2e48b7",
"metadata": {},
"source": [
"**NOTE:** If you use Elasticsearch 8.12, you must change `inference_id` in the snippet above to `model_id`! "
]
},
{
"cell_type": "markdown",
"id": "1024d070",
Expand Down Expand Up @@ -364,6 +372,20 @@
" plot = hit[\"_source\"][\"plot\"]\n",
" print(f\"Score: {score}\\nTitle: {title}\\nPlot: {plot}\\n\")"
]
},
{
"cell_type": "markdown",
"id": "7e4055ba",
"metadata": {},
"source": [
"**NOTE:** If you use Elasticsearch 8.12, you must change `inference_id` in the snippet above to `model_id`."
]
},
{
"cell_type": "markdown",
"id": "59220b82",
"metadata": {},
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 554f62c

Please sign in to comment.