alookup(
self,
prompt: str,
llm_string: str
) -> Optional[RETURN_VAL_TYPEAsync look up based on prompt and llm_string.
Async version of lookup: checks for a cached result for a semantically
similar prompt and the same llm_string.
String representation of the prompt.
In the case of a Chat model, the prompt is a non-trivial serialization of the prompt into the language model.
String representation of the LLM configuration.
This is used to capture the invocation parameters of the LLM (e.g., model name, temperature, stop tokens, max tokens, etc.). These invocation parameters are serialized into a string representation.