Quansight / ragna

RAG orchestration framework ⛵️
https://ragna.chat
BSD 3-Clause "New" or "Revised" License
177 stars 22 forks source link

metadata filter #422

Open pmeier opened 4 months ago

pmeier commented 4 months ago

Feature description

Add the metadata filter abstraction proposed in #256. It does not have to be connected to the ragna.core.Chat as this can be done in a follow-up PR. I just want to have it well tested before moving forward with the rest of the design.

The MetadataFilter object should have the following properties:

Value and/or benefit

First building block for allowing users to have a corpus of documents instead of uploading new ones for every chat.

Anything else?

I have a complete implementation already in https://gist.github.com/pmeier/38ee90be6c30ecdf9bbec086a0dabafe. Unless there are some concerns, it can just be ported.