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

    Type Alias ReadCapacity

    The read capacity configuration for an index. Omit it to use on-demand capacity.

    import type { ReadCapacity } from '@pinecone-database/pinecone';

    const onDemand: ReadCapacity = { mode: 'OnDemand' };

    const dedicated: ReadCapacity = {
    mode: 'Dedicated',
    dedicated: {
    nodeType: 't1',
    scaling: 'Manual',
    manual: { replicas: 2, shards: 1 },
    },
    };