Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/summarization #68

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

calebgcc
Copy link
Member

Another step forward to solve #16.

I added a prompt for the default summarization method that can be imported from plugins (also changed chain type from "map_reduce" to "stuff").

I tested the new text_splitter and it works great, the problem of reaching maximum token is solved now.
We can talk about passing a group of documents instead of just one document, this could help implement hierarchical summarization very easily (if we iterate this step on the output).

@pieroit
Copy link
Member

pieroit commented Mar 31, 2023

Yes @calebgcc go for it!

@calebgcc
Copy link
Member Author

calebgcc commented Apr 2, 2023

@pieroit I just added iterative summarization.
It works fine, the only issue now is that for a long document it takes ages, I tried with alice.txt and it took roughly 20 minutes.

Two possible improvements could be:

  • saving intermediate results
  • use threads (or similar) to speed up the process

@pieroit pieroit merged commit 542b81a into cheshire-cat-ai:main Apr 3, 2023
@pieroit pieroit mentioned this pull request Apr 3, 2023
@calebgcc calebgcc deleted the feature/Summarization branch April 7, 2023 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants