1. Learn
  2. /
  3. Courses
  4. /
  5. Vector Databases for Embeddings with Pinecone

Connected

Exercise

Fetching vectors

In this exercise, you've been provided with a list of ids containing IDs of different records in your 'datacamp-index' index. You'll use these IDs to retrieve the associated records and explore their metadata.

Instructions

100 XP
  • Initialize the Pinecone connection with your API key.
  • Retrieve the vectors with IDs in the ids list from the connected index.
  • Create a list of dictionaries containing the metadata from each record in fetched_vectors.