Skip to content

Commit 7af5d11

Browse files
authored
remove environment as an exposed field for pinecone connector (#30)
1 parent 92aad7a commit 7af5d11

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
## 0.0.5-dev2
1+
## 0.0.5-dev3
22

33
### Enhancements
44

55
* **Add Couchbase Source Connector** Adds support for reading artifacts from Couchbase DB for processing in unstructured
6+
* **Drop environment from pinecone as part of v2 migration** environment is no longer required by the pinecone SDK, so that field has been removed from the ingest CLI/SDK/
67

78
### Fixes
89

test_e2e/dest/pinecone.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ RANDOM_SUFFIX=$((RANDOM % 100000 + 1))
2121
# Set the variables with default values if they're not set in the environment
2222
PINECONE_INDEX=${PINECONE_INDEX:-"ingest-test-$RANDOM_SUFFIX"}
2323
PINECONE_HOST_POSTFIX=${PINECONE_HOST_POSTFIX:-"4627-b74a"}
24-
PINECONE_ENVIRONMENT=${PINECONE_ENVIRONMENT:-"us-east1-gcp"}
2524
PINECONE_PROJECT_ID=${PINECONE_PROJECT_ID:-"art8iaj"}
2625

2726
# shellcheck disable=SC1091
@@ -102,7 +101,6 @@ PYTHONPATH=. ./unstructured_ingest/main.py \
102101
pinecone \
103102
--api-key "$PINECONE_API_KEY" \
104103
--index-name "$PINECONE_INDEX" \
105-
--environment "$PINECONE_ENVIRONMENT" \
106104
--batch-size 80 \
107105
--num-processes "$writer_processes"
108106

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.5-dev2" # pragma: no cover
1+
__version__ = "0.0.5-dev3" # pragma: no cover

unstructured_ingest/v2/processes/connectors/pinecone.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class PineconeAccessConfig(AccessConfig):
4242

4343
class PineconeConnectionConfig(ConnectionConfig):
4444
index_name: str = Field(description="Name of the index to connect to.")
45-
environment: str = Field(description="Environment to connect to.")
4645
access_config: SecretPineconeAccessConfig = Field(
4746
default_factory=lambda: SecretPineconeAccessConfig(secret_value=PineconeAccessConfig())
4847
)
@@ -155,7 +154,6 @@ def run(self, contents: list[UploadContent], **kwargs: Any) -> None:
155154
logger.info(
156155
f"writing document batches to destination"
157156
f" index named {self.connection_config.index_name}"
158-
f" environment named {self.connection_config.environment}"
159157
f" with batch size {self.upload_config.batch_size}"
160158
f" with {self.upload_config.num_processes} (number of) processes"
161159
)

0 commit comments

Comments
 (0)