Menu
Create a legacy integrated index
Create a legacy integrated index
POST
/indexes/create-for-modelUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Create a legacy integrated index action (under Indexes).
- 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.
{
"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>}}.
{
"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.
Was this page helpful?