Upstage Document Parse Parser.
To use, you should have the environment variable UPSTAGE_API_KEY
set with your API key or pass it as a named parameter to the constructor.
UpstageEmbeddings embedding model.
To use, set the environment variable UPSTAGE_API_KEY with your API key or
pass it as a named parameter to the constructor.
Upstage Document Parse Loader.
To use, you should have the environment variable UPSTAGE_API_KEY
set with your API key or pass it as a named parameter to the constructor.
ChatUpstage chat model.
To use, you should have the environment variable UPSTAGE_API_KEY set with your
API key or pass it as a named parameter to the constructor.
Parse the output data based on the specified output type.
Validates if a file exists at the given file path.
Convert file to base64 encoded message format.
This is a generic utility function that can be used across different modules for converting files to the format expected by Upstage APIs.
Get a value from a param or an environment variable.