cheshire-cat-ai / core

Production ready AI agent framework
https://cheshirecat.ai
GNU General Public License v3.0
2.32k stars 320 forks source link

hook to disable summarization #222

Closed mrbullseye01 closed 1 year ago

mrbullseye01 commented 1 year ago

hook to disable summarization should be useful when uploading long documents

pieroit commented 1 year ago

There is now a rabbithole_summarizes_documents hook to personalize summarization.

You can totally disable summarization with this hook in a plugin:

@hook
def rabbithole_summarizes_documents(docs, cat):
    return []

Should be interesting for @calebgcc @nicola-corbellini @EugenioPetulla @mrbullseye01 @zioproto

Also I refactored the rabbit hole, if you want to upload a file or an URL from a plugin you can use the methods cat.rabbit_hole.ingest_file and cat.rabbit_hole.ingest_url

zioproto commented 1 year ago

Fixed in 1f11bcf6b2367a226cb9aec99f2f4307618bf3f4