docs: ls similar examples header (#25642)

This commit is contained in:
Bagatur
2024-08-21 13:50:24 -07:00
committed by GitHub
parent 766b650fdc
commit f535e8a99e

View File

@@ -116,6 +116,8 @@
"id": "5767d171",
"metadata": {},
"source": [
"## Querying dataset\n",
"\n",
"Indexing can take a few seconds. Once the dataset is indexed, we can search for similar examples. Note that the input to the `similar_examples` method must have the same schema as the examples inputs. In this case our example inputs are a dictionary with a \"question\" key:"
]
},
@@ -223,6 +225,8 @@
"id": "e852c8ef",
"metadata": {},
"source": [
"## Creating dynamic few-shot prompts\n",
"\n",
"The search returns the examples whose inputs are most similar to the query input. We can use this for few-shot prompting a model like so:"
]
},