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

Connected

Exercise

Returning the most similar vectors

Querying vectors is foundational to so many AI applications. It involves embedding a user input, comparing it to the vectors in the database, and returning the most similar vectors.

In this exercise, you've been provided with a mystery vector called vector and you'll use it to query your index called 'datacamp-index'.

Instructions

100 XP
  • Initialize the Pinecone connection with your API key.
  • Retrieve the three records with vectors that are most similar to vector.