langchain_core.example_selectors.base
.BaseExampleSelector¶
- class langchain_core.example_selectors.base.BaseExampleSelector[source]¶
Interface for selecting examples to include in prompts.
Methods
__init__
()aadd_example
(example)Add new example to store.
add_example
(example)Add new example to store.
aselect_examples
(input_variables)Select which examples to use based on the inputs.
select_examples
(input_variables)Select which examples to use based on the inputs.
- __init__()¶
- async aadd_example(example: Dict[str, str]) Any [source]¶
Add new example to store.
- Parameters
example (Dict[str, str]) –
- Return type
Any
- abstract add_example(example: Dict[str, str]) Any [source]¶
Add new example to store.
- Parameters
example (Dict[str, str]) –
- Return type
Any