Upstage
Author: Sun Hyoung Lee
Peer Review : Pupba, DoWoung Kong
Proofread : Youngjun cho
This is a part of LangChain Open Tutorial
Overview
'Upstage' is a Korean startup specializing in artificial intelligence (AI) technology, particularly in large language models (LLM) and document AI.
Table of Contents
References
Environment Setup
Set up the environment. You may refer to Environment Setup for more details.
[Note]
langchain-opentutorialis a package that provides a set of easy-to-use environment setup, useful functions and utilities for tutorials.You can checkout the
langchain-opentutorialfor more details.
API Key Configuration
To use UpstageEmbeddings , you need to obtain a Upstage API key.
Once you have your API key, set it as the value for the variable UPSTAGE_API_KEY .
You can alternatively set UPSTAGE_API_KEY in .env file and load it.
[Note] This is not necessary if you've already set UPSTAGE_API_KEY in previous steps.
Check Supported Embedding Models
https://developers.upstage.ai/docs/apis/embeddings
Model Information
embedding-query
2024-05-10
4000
A Solar-base Query Embedding model with a 4k context limit. This model is optimized for embedding user queries in information retrieval tasks such as search and re-ranking.
embedding-passage
2024-05-10
4000
A Solar-base Passage Embedding model with a 4k context limit. This model is optimized for embedding documents or texts for retrieval purposes.
Embed the query
Embed the document
The similarity calculation results are displayed.
Last updated