Installation and setup
We start by installinglangchain
and premai-sdk
. You can type the following command to install:
PremEmbeddings
In this section we are going to dicuss how we can get access to different embedding model usingPremEmbeddings
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.