Code Monkey home page Code Monkey logo

Comments (2)

pieroit avatar pieroit commented on May 18, 2024 1

It's useful to have inside CheshireCat a way to summarize text/documents before saving embeddings.

That's a great idea, summarization could be useful for:

  • saving in memory conversation chunks and not only user utterances / documents
  • when a document is ingested, we should also memorize summaries and not only simple text chunks
  • when the prompt or any of its contents gets too large, summarize parts of it

So I'll propose you this:

  • let's introduce a method for summarization in the main Cat class, similar to present methods like get_hyde_embedding or recall_memories_from_text.
  • we than close the PR and reason on how to design all of this methods to be pluggable as hooks, with a good default in the plugin folder

Sounds good? Any more idea?

We can use Hugging Face maybe for the default one? let me know :)

We just need a summarizer chain on the already present LLM, with a default prompt.
A good example is here with HyDE embedding.
Take a look at langchain chains to see what is possible.
I'm here for any question! Thanks a lot

from core.

calebgcc avatar calebgcc commented on May 18, 2024 1

Sounds good!

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.