canopy icon indicating copy to clipboard operation
canopy copied to clipboard

[Feature] Support "GET" operations for the knowledge base

Open NB-123 opened this issue 1 year ago • 2 comments

Is this your first time submitting a feature request?

  • [X] I have searched the existing issues, and I could not find an existing issue for this feature
  • [X] I am requesting a straightforward extension of existing functionality

Describe the feature

The knowledge base module. supports upsert and delete commands, but I do not see any option to retrieve ("GET"). It would be great if you can support such a feature. Ideally, I should be able to do the retrieval based on document IDs or specified metadata filters.

Describe alternatives you've considered

It seems you can potentially do this in a non-pythonic way using https://docs.pinecone.io/docs/get-record-ids. However, there does not seem to be a native Python way of doing this (via the pinecone or canopy package directly). Moreover, the records need to be manually combined or filtered which is suboptimal.

Who will this benefit?

Everyone who wants CRUD API endpoints to manage their canopy/pinecone indexes

Are you interested in contributing this feature?

Sure, but would appreciate guidance (pair programming maybe?)

Anything else?

No response

NB-123 avatar Feb 13 '24 15:02 NB-123

I like the idea, let me loop in internally and get back to you about this feature request!

miararoy avatar Feb 26 '24 08:02 miararoy

+1 it would be really useful to be able to see what's in the knowledgebase for debugging. I'm dealing with an issue where things I don't think are part of the knowledgebase apparently are, and things that I thought would be apparently aren't.

alalalbert avatar Apr 14 '24 00:04 alalalbert