pinecone_create_index
Create a Pinecone index by declaring its searchable fields upfront, since the schema is permanent. Define dense, sparse, or text fields to enable semantic, lexical, or BM25 search.
Instructions
Create a Pinecone index by declaring its searchable fields.
The schema decides which searches the index can ever answer, and it cannot be changed afterwards - so decide up front:
dense_fields-> semantic search. Dimension must match the embedding model you will use.sparse_fields-> learned lexical search (SPLADE-style).text_fields-> BM25 full-text search and Lucene query strings.
Recipes matching the five common setups:
Keyword search only, one field:
text_fields=[{"name": "body"}]Multi-field FTS:
text_fields=[{"name": "body"}, {"name": "summary"}]Dense + FTS in one index:
dense_fields=[{"name": "embedding", "dimension": 1024}]plustext_fields=[{"name": "body"}]Multi-signal (dense + sparse + FTS): all three lists populated.
Sparse + dense hybrid over the Vectors API: exactly one dense and one sparse field, no text fields.
Limits enforced before the call is sent: at most one dense_vector
field and at most one sparse_vector field per index, up to 100
full-text string fields. Field names must be unique, at most 64 bytes,
and must not start with _ (reserved for _id / _score) or
$ (reserved for filter operators).
Only searchable fields go in the schema. Ordinary metadata is indexed for filtering automatically the first time it appears on a record; declaring it here is rejected by the API.
Args:
name: 1-45 chars, lowercase alphanumerics and hyphens.
pod: Pod deployment instead of managed serverless, e.g.
{"environment": "us-east-1-aws", "pod_type": "p1.x1", "replicas": 1, "shards": 1}.
read_capacity: {"mode": "OnDemand"} or
{"mode": "Dedicated", "dedicated": {...}}.
deletion_protection: "enabled" blocks deletion until switched back.
tags: Up to 20 key/value pairs.
cmek_id: Customer-managed encryption key id.
timeout: Seconds to wait for readiness; -1 returns immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | No | ||
| name | Yes | ||
| tags | No | ||
| cloud | No | ||
| region | No | ||
| cmek_id | No | ||
| timeout | No | ||
| text_fields | No | ||
| dense_fields | No | ||
| read_capacity | No | ||
| sparse_fields | No | ||
| deletion_protection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||