From 48b8cdba9ac26d34b585b4b10175ce7c333ee051 Mon Sep 17 00:00:00 2001 From: Cory Waddingham Date: Mon, 17 Jun 2024 11:40:09 -0700 Subject: [PATCH] Added `source_tag='canopy'` to `knowledge_base._get_global_client()` to send the attribution tag for Canopy when initializing the connection. --- src/canopy/knowledge_base/knowledge_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canopy/knowledge_base/knowledge_base.py b/src/canopy/knowledge_base/knowledge_base.py index 2ff05db0..26dcfcf8 100644 --- a/src/canopy/knowledge_base/knowledge_base.py +++ b/src/canopy/knowledge_base/knowledge_base.py @@ -37,7 +37,7 @@ @lru_cache(maxsize=1) def _get_global_client() -> Pinecone: - return Pinecone() + return Pinecone(source_tag="canopy") def list_canopy_indexes(pinecone_client: Pinecone = None) -> List[str]: