Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Type Alias CreateIndexSchemaField

    CreateIndexSchemaField:
        | DenseVectorField & { metric: IndexMetric; type: "dense_vector" }
        | SparseVectorField
        | FullTextSearchStringField

    The configuration of a single field in the schema of a new index.

    A schema declares the searchable fields of the index. One of three creatable field types:

    • dense_vector — fixed-dimension vectors for semantic search.
    • sparse_vector — sparse vectors for keyword or hybrid search.
    • string with fullTextSearch — see FullTextSearchStringField.

    A semantic_text field — text embedded by an integrated model — cannot be declared here. Use Indexes.createForModel instead, which builds the field from the model parameters you supply. semantic_text still appears on the schema of an index you describe, as one of the IndexSchemaField types.

    Values you only need to filter on — numbers, booleans, string lists, and plain strings — do not belong in the schema. Send them as document metadata instead: they are indexed automatically at upsert time and appear on the described index's IndexSchema.

    Type Declaration