Select few-shot examples to be included in the prompt
Few-shot examples will be included in the prompt returned by the Prompts#get.
You can pass an example selector to the method to select the few-shot examples to be
included in the prompt.
from langchain.prompts.example_selector import SemanticSimilarityExampleSelectorfrom langchain.vectorstores import Chromafrom langchain.embeddings import OpenAIEmbeddingsexample_selector = SemanticSimilarityExampleSelector.from_examples( [], # Keep it empty. The examples will be set by LangBear. OpenAIEmbeddings(), Chroma, k=1)prompt = lb.prompts.get( "company-name-generation", example_selector=example_selector)