younifyd
Menu

Create a legacy integrated index

Create a legacy integrated index

POST/indexes/create-for-model

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Create a legacy integrated index action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{createALegacyIntegratedIndex.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

namestringrequired

The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.

cloudstringrequired

The public cloud where you would like your index hosted. Possible values: `gcp`, `aws`, or `azure`.

regionstringrequired

The region where you would like your index to be created.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

schemaobject

Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: true` are indexed. Note that `filterable: false` is not currently supported.

fieldsobject

A map of metadata field names to their configuration. The field name must be a valid metadata field name. The field name must be unique. At most 50 fields may be declared. Field names may not begin with `$`, which introduces a filter operator. When declared at index creation, names beginning with `_` are also rejected (reserved for internal use).

read_capacityoneOf

By default the index will be created with read capacity mode `OnDemand`, for managed and BYOC indexes alike. If you prefer to allocate dedicated read nodes for your workload, you must specify mode `Dedicated` and additional configurations for `node_type` and `scaling`.

embedobjectrequired

Specify the integrated embedding configuration for the legacy integrated index. Once set, the model and field map can't be changed, but you can later update the read parameters and write parameters of a legacy integrated index. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available models and model details.

modelstringrequired

The name of the embedding model to use for the index.

metricstring

The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'. If not specified, the metric will be defaulted according to the model. Cannot be updated once set. Possible values: `cosine`, `euclidean`, or `dotproduct`.

field_mapobjectrequired

Identifies the name of the text field from your document model that will be embedded.

dimensioninteger

The dimension of embedding vectors produced for the index.

read_parametersobject

The read parameters for the embedding model.

write_parametersobject

The write parameters for the embedding model.

json
{
  "name": "example-index",
  "cloud": "aws",
  "region": "us-east-1",
  "embed": {
    "field_map": {
      "text": "your-text-field"
    },
    "metric": "cosine",
    "model": "multilingual-e5-large",
    "read_parameters": {
      "input_type": "query",
      "truncate": "NONE"
    },
    "write_parameters": {
      "input_type": "passage"
    }
  },
  "deletion_protection": "disabled",
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  },
  "schema": {
    "fields": {
      "description": {
        "filterable": true
      },
      "genre": {
        "filterable": true
      },
      "year": {
        "filterable": true
      }
    }
  },
  "read_capacity": null
}

Response

Returns 201 with an object. Read it in later steps with {{createALegacyIntegratedIndex.response.data.<field>}}.

namestring

The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.

hoststring

The URL address where the index is hosted.

private_hoststring

The private endpoint URL of an index.

statusobject

The current status of the index.

readybooleanrequired

Whether the index is ready for use.

statestringrequired

The current state of the index. Possible values: `Initializing`, `InitializationFailed`, `Failed`, `ScalingUp`, `ScalingDown`, `ScalingUpPodSize`, `Terminating`, `Ready`, or `Disabled`.

deploymentoneOf

The deployment configuration of a Pinecone index. The `deployment_type` field indicates which infrastructure model the index uses. - `pod`: Dedicated pod-based infrastructure. Suitable for workloads that require predictable performance. - `managed`: Serverless infrastructure managed by Pinecone, including full-text search indexes. Scales automatically; billed per usage. - `byoc`: Bring-your-own-compute. Runs in customer-managed infrastructure.

read_capacityoneOf

Response containing read capacity configuration

source_collectionstring

The name of the collection this index was created from, if any.

source_backup_idstring

The ID of the backup this index was restored from, if any.

cmek_idstring

The ID of the customer-managed encryption key (CMEK) used to encrypt this index, if any.

schemaobject

The schema of a Pinecone index. The schema defines the typed fields that documents in the index can contain, including vector fields, string fields searched by full-text search or by embeddings, and metadata fields.

fieldsobjectrequired

A map of field names to their configurations. Indexes that are served by the vectors API — created with the reserved `_values` / `_sparse_values` schema, or created by an earlier API version from `dimension`, `metric`, and `vector_type` — report their vector fields under the reserved names `_values` (dense) and `_sparse_values` (sparse), and any metadata fields configured for filtering as legacy fields carrying only `filterable`. Dense vectors-API indexes always report both `_values` and `_sparse_values`, regardless of how they were created.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

json
{
  "name": "example-index",
  "host": "semantic-search-c01b5b5.svc.us-west1-gcp.pinecone.io",
  "status": {
    "ready": true,
    "state": "Ready"
  },
  "deployment": null,
  "schema": {
    "fields": {
      "body": {
        "embed": {
          "dimension": 1024,
          "metric": "cosine",
          "model": "llama-text-embed-v2"
        },
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "sparse_embed": {
          "model": "pinecone-sparse-english-v0"
        },
        "store_text": true,
        "type": "string"
      },
      "title": {
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "store_text": true,
        "type": "string"
      }
    }
  },
  "deletion_protection": "disabled",
  "private_host": "semantic-search-c01b5b5.svc.private.us-west1-gcp.pinecone.io",
  "read_capacity": null,
  "source_collection": "movie-embeddings",
  "source_backup_id": "670e8400-e29b-41d4-a716-446655440000",
  "cmek_id": "arn:aws:kms:us-east-1:123456789012:key/mrk-abc123",
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.