langchain/libs/partners/upstage
junkeon 480c02bf55
upstage[minor]: add merge_and_split function for document loader (#21603)
- Introduce the `merge_and_split` function in the
`UpstageLayoutAnalysisLoader`.
- The `merge_and_split` function takes a list of documents and a
splitter as inputs.
- This function merges all documents and then divides them using the
`split_documents` method, which is a proprietary function of the
splitter.
- If the provided splitter is `None` (which is the default setting), the
function will simply merge the documents without splitting them.
2024-05-13 10:55:19 -04:00
..
langchain_upstage upstage[minor]: add merge_and_split function for document loader (#21603) 2024-05-13 10:55:19 -04:00
scripts upstage: init package (#20574) 2024-04-17 23:25:36 +00:00
tests upstage: deprecate UPSTAGE_DOCUMENT_AI_API_KEY (#21363) 2024-05-08 18:02:26 +00:00
.gitignore upstage: init package (#20574) 2024-04-17 23:25:36 +00:00
LICENSE upstage: init package (#20574) 2024-04-17 23:25:36 +00:00
Makefile upstage: init package (#20574) 2024-04-17 23:25:36 +00:00
poetry.lock upstage[minor]: Update few codes and add upstage loader in pdf section (#21085) 2024-04-30 20:15:49 -04:00
pyproject.toml upstage: release 0.1.4 (#21432) 2024-05-08 17:57:40 +00:00
README.md upstage: init package (#20574) 2024-04-17 23:25:36 +00:00

langchain-upstage

This package contains the LangChain integrations for Upstage through their APIs.

Installation and Setup

  • Install the LangChain partner package
pip install -U langchain-upstage
  • Get an Upstage api key from Upstage Console and set it as an environment variable (UPSTAGE_API_KEY)

Chat Models

This package contains the ChatUpstage class, which is the recommended way to interface with Upstage models.

See a usage example

Embeddings

See a usage example

Use solar-1-mini-embedding as the default model for embeddings. Do not add suffixes such as -query or -passage to the model name. UpstageEmbeddings will automatically add the suffixes based on the method called.