pinecone-io / canopy

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

Add snippet ids to context builder debug info #274

Closed acatav closed 9 months ago

acatav commented 9 months ago

Problem

Currently the debug info not includes the sorted list of snippet ids that actually included in the final context. This blocks the option to measure standard IR metrics like NDCG or MRR.

Solution

Add snippet ids list to debug infro in the context builder.

Type of Change

Test Plan

Existing tests apply