Skip to content

Conversation

@rohanshah18
Copy link
Contributor

Problem

Add support for Bring Your Own Cloud (BYOC)

Solution

This PR adds support for BYOC (Bring Your Own Cloud) index creation. Added createByocIndex method with two overloads for creating BYOC indexes:

Minimal overload (4 parameters):

IndexModel indexModel = pinecone.createByocIndex(
    indexName, "cosine", 1536, "your-byoc-environment");

Full overload with all options (7 parameters):

// Create BYOC index with metadata schema
Map<String, BackupModelSchemaFieldsValue> fields = new HashMap<>();
fields.put("genre", new BackupModelSchemaFieldsValue().filterable(true));
fields.put("year", new BackupModelSchemaFieldsValue().filterable(true));
BackupModelSchema schema = new BackupModelSchema().fields(fields);

Map<String, String> tags = new HashMap<>();
tags.put("env", "production");

IndexModel indexModel = pinecone.createByocIndex(
    indexName, "cosine", 1536, "aws-us-east-1-b921",
    "enabled", tags, schema);

Note: The BYOC environment name is provided during BYOC onboarding with Pinecone. You must have a BYOC environment set up before creating BYOC indexes.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Manually tested on dev ci clusters

@rohanshah18 rohanshah18 marked this pull request as ready for review November 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants