/google-gemini-embedding

Feb -Mar 2024 starter code for embedding model using google gemini pro

Primary LanguageJavaScript

Gemini Pro Embeddings for Node.js Starter Code

API call for generating embeddings via Gemini Pro API. Google AI Studio and Google Cloud Platform Account required. Use Node v18.19.0

Dependencies:

npm install @google/generative-ai fs nodemon dotenv

You will need a Google AI Studio API Key:

https://aistudio.google.com/app/apikey

Paste your key into a .ENV file at the root of your project:

.env

API_KEY= your api key goes here