From f535e8a99e0ad8fa342785b3b309046a66940333 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:50:24 -0700 Subject: [PATCH] docs: ls similar examples header (#25642) --- docs/docs/how_to/example_selectors_langsmith.ipynb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/how_to/example_selectors_langsmith.ipynb b/docs/docs/how_to/example_selectors_langsmith.ipynb index 2e7ab9a5bcb..b8d928082ff 100644 --- a/docs/docs/how_to/example_selectors_langsmith.ipynb +++ b/docs/docs/how_to/example_selectors_langsmith.ipynb @@ -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:" ] },