dspy icon indicating copy to clipboard operation
dspy copied to clipboard

How to ?(Summarization+Task specific text generation)

Open gabgen opened this issue 1 year ago • 3 comments

Hi everybody , I already read all the issues, and many of them seem to struggle framing the solution with this new approach. I am here to join the crew :)

So my situation is : I have a text and I want to extract the most important points , along with evidences for each of these points. After that I would like to use this extracted information to create a discourse based on that , according to some constraints, rules, and suggestions and specific tone.

As you can imagine it's a lot of work : you have to specify what do you want to extract, how , you have to specify you don't want to expose the same information twice even if it's present in the original text. Maybe you want to specify the tone to use. All this specs are usually long to write and in general it doesn't seem the framework fits with this usage.

Can you help me figure out how to do that ?

gabgen avatar Nov 06 '23 22:11 gabgen

Yes i am looking for the same. Hopefully this gets solved too. But just for thought, do we have to create the input output dataset ourselves and use dspy to let it figure out ?

krishna-praveen avatar Feb 06 '24 16:02 krishna-praveen

@krishna-praveen You just need inputs + metric, you don't need labels for the steps (except whatever the metric needs)

okhat avatar Feb 06 '24 16:02 okhat

@okhat Can you please let me know if there is any example tutorial addressing this summarization problems?

krishna-praveen avatar Feb 06 '24 16:02 krishna-praveen

@okhat having similar use case-

Couple of things which can work but need more analysis and benchmarking-

  1. Having a prompt dictionary which are based on rules and filters one want to apply . That prompt dictionary will have all the required relevant info for question/ answer based summarization. Just that it may not give the passage from which the summary - points are extracted.

  2. Building RAG framework can be a way.

I am also looking for examples.

shivamnegi92 avatar Mar 17 '24 22:03 shivamnegi92

I'm looking for the same! If anyone has examples, I would be very grateful

arthurbm avatar Mar 28 '24 12:03 arthurbm

Hi all, I am also working on a similar use case, given certain parameters, I want an llm to summarize the most relevant information. So looking for some DSPy examples on similar tasks...

edgarbc avatar Jun 24 '24 19:06 edgarbc

Hi all, I am also working on a similar use case, given certain parameters, I want an llm to summarize the most relevant information. So looking for some DSPy examples on similar tasks...

@edgarbc what are the parameters you're thinking about?

pierrevalade avatar Jun 24 '24 23:06 pierrevalade