Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt

Use this file to discover all available pages before exploring further.

Problem

Using the new API, creating an index requires passing appropriate values into the spec parameter. Without this spec parameter, the create_index method raises the following error:
console
TypeError: Pinecone.create_index() missing 1 required positional argument: 'spec'

Solution

Set the spec parameter. For guidance on how to set this parameter, see Create an index.