AlphaAlphaindexesControl-plane index operations (list, create, configure, describe, delete, backups, restore jobs, collections).
AlphaReturns a PreviewIndex for performing data-plane document operations against a schema-based index.
Provide either name (resolves the host via describeIndex) or host
(skips that round-trip). When both are provided, host is used directly
and name is only used for cache-key purposes.
IndexOptions — must include at least name or host.
// Resolve host automatically from the index name
const previewIndex = pc.preview.index({ name: 'my-schema-index' });
// Skip host resolution when you already know the host URL
const previewIndex = pc.preview.index({ host: 'https://my-host.pinecone.io' });
const result = await previewIndex.upsertDocuments('my-namespace', {
documents: [{ _id: 'doc-1', content: 'Hello world' }],
});
Entry point for Pinecone preview operations. Access via
pc.preview.Uses Pinecone API version
2026-01.alpha. Preview surface is not covered by SemVer — signatures and behavior may change in any minor SDK release. Pin your SDK version when relying on preview features.