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

    Interface NativeCreateIndexOptions

    Options for creating a schema-based index.

    interface NativeCreateIndexOptions {
        cmekId?: string;
        deletionProtection?: DeletionProtection;
        deployment?: IndexDeploymentRequest;
        dimension?: undefined;
        metric?: undefined;
        name: string;
        readCapacity?: ReadCapacity;
        schema: CreateIndexSchema;
        spec?: undefined;
        suppressConflicts?: boolean;
        tags?: { [key: string]: string } | null;
        timeout?: number;
        vectorType?: undefined;
        waitUntilReady?: boolean;
    }

    Hierarchy

    • Omit<
          CreateIndexRequest,
          "name"
          | "schema"
          | "readCapacity"
          | "deletionProtection",
      >
      • NativeCreateIndexOptions
    Index
    cmekId?: string

    The ID of a customer-managed encryption key (CMEK) to use for this index. Requires CMEK to be enabled for your organization. Encrypted indexes cannot have full_text_search fields: a request that sets cmek_id and declares one is rejected, and a project that enforces CMEK rejects any schema with a full_text_search field with 412.

    CreateIndexRequest

    deletionProtection?: DeletionProtection

    Whether to enable deletion protection. Defaults to disabled.

    CreateIndexRequest

    dimension?: undefined

    Use schema fields.

    metric?: undefined

    Use schema fields.

    name: string

    The name of the index to create. Must be unique within the project.

    readCapacity?: ReadCapacity

    The read capacity configuration for the index. Omit for on-demand capacity.

    The typed fields stored in each document. See CreateIndexSchema.

    spec?: undefined

    Use deployment.

    suppressConflicts?: boolean

    When true, returns undefined instead of throwing if an index with this name already exists. Otherwise creation always returns an index model, regardless of waitUntilReady.

    tags?: { [key: string]: string } | null

    Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. null in responses when the index has no tags.

    CreateIndexRequest

    timeout?: number

    Maximum time in milliseconds to wait for the index to become ready when waitUntilReady is true. Omit to poll indefinitely. Throws Errors.PineconeTimeoutError if the deadline is exceeded.

    vectorType?: undefined

    Use schema fields.

    waitUntilReady?: boolean

    When true, polls until the index is ready before returning.