utils
#
Utility functions for LangChain.
Classes
Representation of a callable function to the Ernie API. |
|
Representation of a callable function to the Ernie API. |
Functions
|
Convert a Pydantic model to a function description for the Ernie API. |
Convert a Pydantic model to a function description for the Ernie API. |
|
|
Return a custom user agent header. |
Row-wise cosine similarity between two equal-width matrices. |
|
|
Row-wise cosine similarity with optional top-k and score threshold filtering. |
Return whether OpenAI API is v1 or more. |
|
Get user agent from environment variable. |