diff --git a/pyproject.toml b/pyproject.toml index 477f7d45ce885ad9a6612dc7f17592fc6d71b460..2b55043e7fc7043db06e8721e9e7e04671a2f50c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,6 @@ pytest-xdist = "^3.5.0" mypy = "^1.7.1" types-pyyaml = "^6.0.12.12" types-requests = "^2.31.0" -termcolor = "^2.4.0" matplot = "^0.1.9" [build-system] diff --git a/semantic_router/index/pinecone.py b/semantic_router/index/pinecone.py index 5913a6adf1411204ce19b096886ad71fdb384d98..886cd8065ca7b9f2e8eb19cda3658b0a4c21d9e3 100644 --- a/semantic_router/index/pinecone.py +++ b/semantic_router/index/pinecone.py @@ -50,10 +50,9 @@ class PineconeIndex(BaseIndex): def __init__(self, **data): super().__init__(**data) - clean_route = clean_route_name(self.route) - # Use SHA-256 for a more secure hash - utterance_id = hashlib.sha256(self.utterance.encode()).hexdigest() - self.id = f"{clean_route}#{utterance_id}" + self._initialize_client() + self.type = "pinecone" + self.client = self._initialize_client() def _initialize_client(self, api_key: Optional[str] = None): try: