pinecone-io / canopy

Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone
https://www.pinecone.io/
Apache License 2.0
975 stars 121 forks source link

Added `source_tag='canopy'` to `knowledge_base._get_global_client()` #342

Closed cwaddingham closed 1 week ago

cwaddingham commented 5 months ago

Problem

It's not easy to quickly attribute index activity to Canopy, so we don't have a reliable way of comparing its use with other frameworks using Pinecone.

Solution

This adds a source_tag, 'canopy', which is inline with how our partners manage their attributions.

Type of Change

Test Plan

  1. Create a new Canopy index using the changed module.
  2. Upsert one or more documents to the index.
  3. Check the backend traces for the user_agent header "source_tag=canopy".
cwaddingham commented 5 months ago

@miararoy from our conversation last week.