04. UpstageEmbeddings Copy

# API KEY  configuration file for managing environment variables
from dotenv import load_dotenv

# API KEY load information
load_dotenv()

Copy

True

Upstage

Upstage is a domestic startup specialized in artificial intelligence (AI) technology, especially large language models (LLM) and document AI.

API key issuance

Copy

texts = [
    "Hello, nice to meet you.",
    "LangChain simplifies the process of building applications with large language models",
    "LangChain Korean Tutorial is the official documentation of LangChain, cookbook And it is structured to help users utilize LangChain more easily and effectively based on various practical examples. ",
    "LangChain simplifies the process of building applications with large language models.",
    "Retrieval-Augmented Generation (RAG) is an effective technique for improving AI responses.",
]

Check supported embedding models

Model information

Model

Release date

Context Length

Description

solar-embedding-1-large-query

2024-05-10

4000

Solar-base Query Embedding model with 4k context limitation. This model is optimized for embedding user questions in information exploration tasks such as search and realignment.

solar-embedding-1-large-passage

2024-05-10

4000

Solar-base Passage Embedding model with 4k context limitation. This model is optimized for embedding documents or text to search for.

Copy

Query Embed.

Copy

Copy

Embed documents.

Copy

Similarity outputs the calculation result.

Copy

Copy

Last updated