How to Create Embeddings and a Vector Profile for Pinecone with Volt Vectors

How to Create Embeddings and a Vector Profile for Pinecone with Volt Vectors

Welcome to this tutorial on using Volt Vectors to create embeddings and a vector profile for Pinecone. In this post, we’ll walk through the step-by-step process for setting this up.

Prerequisites #

  • Access to the Volt Vectors plugin in your WordPress admin
  • An OpenAI API key
  • A Pinecone account and API keys

Step 1: Generate an OpenAI API Key #

First, you’ll need an API key from OpenAI. This allows Volt Vectors to leverage OpenAI models for generating embeddings.

To get your API key:

  • Go to openai.com and sign up for an account if you don’t already have one.
  • Once signed in, go to your account settings and API keys.
  • Generate a new API key and copy it for use in the next step.

Step 2: Configure the Vector Profile in Volt Vectors #

With your OpenAI API key ready, let’s set up the vector profile:

  • In your WordPress admin, go to Volt Vectors > Embeddings & Vector Profiles
  • Click “Add New Profile”
  • Give your profile a name and description. These can’t be changed later.
  • Select the OpenAI model you want to use from the dropdown.
  • Paste your API key into the field.
  • For Vector Database, choose “Pinecone”.

Step 3: Set Up Your Pinecone Configuration #

Now we need to connect Volt Vectors to your Pinecone account:

  • Copy your Pinecone environment API key from the Pinecone console.
  • In Volt Vectors, paste this into the “Pinecone API Key” field.
  • Select your Pinecone environment from the dropdown.
  • For Pinecone Index, create a new index in Pinecone with this exact name, 1536 dimensions, and cosine similarity. The free plan works fine.

Step 4: Save Your New Profile #

  • Once all the fields are filled in, click “Save”.
  • Your new Pinecone vector profile is now ready!

You can now start creating embeddings using this profile. Just go to Embeddings in Volt Vectors.

A few tips:

  • Pinecone indexes expire after 7 days of inactivity, so you may need to regenerate.
  • Check out the other Volt Vectors tutorial on customizing embedding settings.

Let me know if you have any other questions!