langchain/libs/partners/upstage
Bagatur d96f67b06f
standard-tests[patch]: Update chat model standard tests (#22378)
- Refactor standard test classes to make them easier to configure
- Update openai to support stop_sequences init param
- Update groq to support stop_sequences init param
- Update fireworks to support max_retries init param
- Update ChatModel.bind_tools to type tool_choice
- Update groq to handle tool_choice="any". **this may be controversial**

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-06-17 13:37:41 -07:00
..
langchain_upstage upstage[patch] : fix error handling in Layout Analysis parser (#22054) 2024-05-23 11:45:34 -04:00
scripts
tests standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
.gitignore
LICENSE
Makefile
poetry.lock standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
pyproject.toml standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
README.md partner-upstage[patch]: embeddings empty list bug (#22057) 2024-05-23 11:44:30 -04: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-embedding-1-large 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.