prepare_inputs_for_autoembed#

langchain_experimental.rl_chain.base.prepare_inputs_for_autoembed(inputs: Dict[str, Any]) Dict[str, Any][source]#

Prepare the inputs for auto embedding.

Go over all the inputs and if something is either wrapped in _ToSelectFrom or _BasedOn, and if their inner values are not already _Embed, then wrap them in EmbedAndKeep while retaining their _ToSelectFrom or _BasedOn status

Parameters:

inputs (Dict[str, Any])

Return type:

Dict[str, Any]