Upstage
Upstage is a leading artificial intelligence (AI) company specializing in delivering above-human-grade performance LLM components.
Solar Pro is an enterprise-grade LLM optimized for single-GPU deployment, excelling in instruction-following and processing structured formats like HTML and Markdown. It supports English, Korean, and Japanese with top multilingual performance and offers domain expertise in finance, healthcare, and legal.
Other than Solar, Upstage also offers features for real-world RAG (retrieval-augmented generation), such as Document Parse and Groundedness Check.
Upstage LangChain integrations
API | Description | Import | Example usage |
---|---|---|---|
Chat | Build assistants using Solar Chat | from langchain_upstage import ChatUpstage | Go |
Text Embedding | Embed strings to vectors | from langchain_upstage import UpstageEmbeddings | Go |
Groundedness Check | Verify groundedness of assistant's response | from langchain_upstage import UpstageGroundednessCheck | Go |
Document Parse | Serialize documents with tables and figures | from langchain_upstage import UpstageDocumentParseLoader | Go |
See documentations for more details about the models and features.
Installation and Setup
Install langchain-upstage
package:
pip install -qU langchain-core langchain-upstage
Get API Keys and set environment variable UPSTAGE_API_KEY
.
import os
os.environ["UPSTAGE_API_KEY"] = "YOUR_API_KEY"