prorm API Reference
    Preparing search index...

    Class PineconeStore

    PineconeStore wraps the @pinecone-database/pinecone client and exposes index administration plus the vector data-plane operations (upsert/query/fetch/update/delete) as a typed, promise-based API.

    Every data-plane method (upsert, query, fetch, update, deleteByIds, deleteByFilter, deleteAll, describeIndexStats) targets a specific index by name and accepts an optional namespace to scope the operation, mirroring the real SDK's index.namespace(ns) pattern - Pinecone partitions the vectors within a single index into namespaces, and most operations are namespace-scoped rather than index-wide.

    Implements

    Index
    name: "pinecone" = 'pinecone'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "@pinecone-database/pinecone" = '@pinecone-database/pinecone'

    The client library being used

    • Describe a single index (dimension, metric, host, spec, ready status).

      Parameters

      • indexName: string

      Returns Promise<IndexModel>

    • Create a new index. options.spec selects the deployment shape - { serverless: { cloud, region } } for a serverless index or { pod: { environment, podType, ... } } for a pod-based index - and is required by the underlying SDK, matching Pinecone's actual index lifecycle (there is no dimension-less/spec-less index).

      Parameters

      • options: CreateIndexOptions

      Returns Promise<void | IndexModel>

    • Delete an index by name. Irreversible - all vectors in every namespace are destroyed with it.

      Parameters

      • indexName: string

      Returns Promise<void>

    • Upsert one or more vector records into indexName. If a record's id already exists, its values/metadata are overwritten in full (not merged) - this is the same "insert or fully replace" semantics as the real Pinecone upsert API.

      Type Parameters

      • T extends RecordMetadata = RecordMetadata

      Parameters

      Returns Promise<void>

    • Find the topK records most similar to a query vector (options.vector) or to an existing record's vector (options.id). See QueryVectorsOptions/the real SDK's QueryOptions for filter/includeMetadata/includeValues.

      Type Parameters

      • T extends RecordMetadata = RecordMetadata

      Parameters

      • indexName: string
      • options: QueryOptions
      • Optionalnamespace: string

      Returns Promise<QueryResponse<T>>

    • Fetch one or more records by id. Ids that don't exist are simply absent from records in the response.

      Type Parameters

      • T extends RecordMetadata = RecordMetadata

      Parameters

      Returns Promise<FetchResponse<T>>

    • Update an existing record by id. A provided values array overwrites the stored vector; a provided metadata object is merged into the existing metadata (only the given fields are added/changed, matching the real SDK's partial-update semantics).

      Type Parameters

      • T extends RecordMetadata = RecordMetadata

      Parameters

      Returns Promise<void>