Skip to main content
This notebook covers how to get started with Upstage embedding models.

Installation

Install langchain-upstage package.

Environment setup

Make sure to set the following environment variables:

Usage

Initialize UpstageEmbeddings class.
Use embed_documents to embed list of texts or documents.
Use embed_query to embed query string.
Use aembed_documents and aembed_query for async operations.

Using with vector store

You can use UpstageEmbeddings with vector store component. The following demonstrates a simple example.
The langchain-community package is no longer maintained. Examples that import from langchain_community may be outdated or broken. Use with caution.