Menu
Convert an index into a document index
Convert an index into a document index
POST
/indexes/{index_name}/convertUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Convert an index into a document index action (under Indexes).
- Fill in the fields below, then reference the result from later steps as
{{convertAnIndexIntoADocumentIndex.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"name": "example-index",
"schema": {
"fields": {
"body": {
"full_text_search": {
"language": "en"
},
"type": "string"
},
"your_vector": {
"dimension": 1536,
"metric": "cosine",
"type": "dense_vector"
}
}
},
"error_mode": {
"on_error": "abort"
},
"tags": {
"tag0": "val0",
"tag1": "val1"
},
"deletion_protection": "disabled",
"read_capacity": null
}
Response
Returns 202 with an object. Read it in later steps with {{convertAnIndexIntoADocumentIndex.response.data.<field>}}.
{
"conversion_job_id": "670e8400-e29b-41d4-a716-446655440001",
"index_id": "123e4567-e89b-12d3-a456-426614174000"
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?