langchain_core.example_selectors.base.BaseExampleSelector¶
- class langchain_core.example_selectors.base.BaseExampleSelector[source]¶
用于选择包含在提示中的示例的接口。
Methods
__init__()aadd_example(example)添加新的示例到存储。
add_example(example)添加新的示例到存储。
aselect_examples(input_variables)根据输入选择要使用的示例。
select_examples(input_variables)根据输入选择要使用的示例。
- __init__()¶
- async aadd_example(example: Dict[str, str]) Any[source]¶
添加新的示例到存储。
- Parameters
example (Dict[str, str]) –
- Return type
Any
- abstract add_example(example: Dict[str, str]) Any[source]¶
添加新的示例到存储。
- Parameters
example (Dict[str, str]) –
- Return type
Any