langchain
and premai-sdk
. You can type the following command to install:
PremEmbeddings
with LangChain. Let’s start by importing our modules and setting our API Key.
project_id
is 8
. But make sure you use your project-id, otherwise it will throw error.
Note: Setting model_name
argument in mandatory for PremAIEmbeddings unlike ChatPremAI.
text-embedding-3-large
model for this example.