ClovaXEmbeddings
This notebook covers how to get started with embedding models provided by CLOVA Studio. For detailed documentation on ClovaXEmbeddings
features and configuration options, please refer to the API reference.
Overviewโ
Integration detailsโ
Provider | Package |
---|---|
Naver | langchain-community |
Setupโ
Before using embedding models provided by CLOVA Studio, you must go through the three steps below.
- Creating NAVER Cloud Platform account
- Apply to use CLOVA Studio
- Create a CLOVA Studio Test App or Service App of a model to use (See here.)
- Issue a Test or Service API key (See here.)
Credentialsโ
Set the NCP_CLOVASTUDIO_API_KEY
environment variable with your API key.
- Note that if you are using a legacy API Key (that doesn't start with
nv-*
prefix), you might need two additional keys to be set as environment variables (NCP_APIGW_API_KEY
andNCP_CLOVASTUDIO_APP_ID
. They could be found by clickingApp Request Status
>Service App, Test App List
>Details
button for each app in CLOVA Studio.
import getpass
import os
if not os.getenv("NCP_CLOVASTUDIO_API_KEY"):
os.environ["NCP_CLOVASTUDIO_API_KEY"] = getpass.getpass(
"Enter NCP CLOVA Studio API Key: "
)
Uncomment below to use a legacy API key:
# if not os.getenv("NCP_APIGW_API_KEY"):
# os.environ["NCP_APIGW_API_KEY"] = getpass.getpass("Enter NCP API Gateway API Key: ")
# os.environ["NCP_CLOVASTUDIO_APP_ID"] = input("Enter NCP CLOVA Studio App ID: ")