BaşlayınÜcretsiz Başlayın

Connecting to an index

To begin ingesting vectors and performing vector manipulations in your newly-created Pinecone index, you'll first need to connect to it! The resulting index object has a number of methods for ingesting, manipulating, and exploring the contents of the index in Python.

The Pinecone class has already been imported for you, and will be available throughout the course.

Bu egzersiz

Vector Databases for Embeddings with Pinecone

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Initialize the Pinecone connection with your API key.
  • Connect to the "my-first-index" index.
  • Print key statistics about the index using an index method.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Set up the client with your API key
pc = Pinecone(api_key="____")

# Connect to your index
index = pc.____("____")

# Print the index statistics
print(index.____)
Kodu Düzenle ve Çalıştır