Pinecone#


# Pinecone API Key and Environment
pinecone_api_key = "YourKey"
pinecone_environment = "YourENV"
pinecone_index = "YourIndex"
  1. Sign Up or Log In - If youโ€™re new to Pinecone, first sign up here. - If you have an account, log in here.

    ../../_images/pinecone-1.png
  2. Get Your API Key and Environment a. After logging in, click โ€œAPI Keysโ€ on the left. b. Create a new API key or use the default one.

    ../../_images/pinecone-2.png
    1. Copy both the API key and the Environment.

    ../../_images/pinecone-3.png
    1. Then, add them to your code:

    pinecone_api_key = "YourKey"
    pinecone_environment = "YourENV"
    
  3. Set Up Pinecone Index a. First, make a new Index.

    ../../_images/pinecone-4.png
    1. Configure the Index: - Choose a name for the index, like โ€œgptโ€. - Pick the type, size, and other settings. For example: 1536 dimensions, cosine metric, and the Default starter Pod Type.

    ../../_images/pinecone-5.png
    1. Copy the Index Name and add to your code:

    pinecone_index = "YourIndex"