import { ... } from "@langchain/core/example_selectors";Type guard function that checks if a given language model is of type
BaseChatModel.
Type guard function that checks if a given language model is of type
BaseLLM.
Base class for example selectors.
Abstract class that defines the interface for selecting a prompt for a given language model.
Concrete implementation of BasePromptSelector that selects a prompt
based on a set of conditions. It has a default prompt that it returns
if none of the conditions are met.
A specialized example selector that selects examples based on their length, ensuring that the total length of the selected examples does not exceed a specified maximum length.
Class that selects examples based on semantic similarity. It extends the BaseExampleSelector class.