> ## Documentation Index
> Fetch the complete documentation index at: https://langbear.runbear.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Using an example selector

> 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.

<Note>
  Check out [Using an example
  selector](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/few_shot_examples#using-an-example-selector)
  section to learn more about example selectors.
</Note>

<CodeGroup>
  ```python python theme={null}
  from langchain.prompts.example_selector import SemanticSimilarityExampleSelector
  from langchain.vectorstores import Chroma
  from langchain.embeddings import OpenAIEmbeddings

  example_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
  )
  ```

  ```typescript typescript theme={null}
  TBD;
  ```
</CodeGroup>
