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

    Type Alias ReadCapacityResponse

    ReadCapacityResponse:
        | { mode: "Dedicated" } & ReadCapacityDedicatedSpecResponse
        | { mode: "OnDemand" } & ReadCapacityOnDemandSpecResponse

    The read capacity of an index. Check mode to reach the dedicated configuration.

    import { Pinecone } from '@pinecone-database/pinecone';

    const pc = new Pinecone();
    const index = await pc.indexes.describe('product-catalog');
    if (index.readCapacity?.mode === 'Dedicated') {
    console.log(index.readCapacity.dedicated?.nodeType);
    }

    Type Declaration