Targeting the Summary field of a long formatted text with summary and limit character count

Created on 8 May 2023, over 1 year ago
Updated 26 September 2023, over 1 year ago

Hi
We are trying to create a "Summarize" button for augmentor to automatically generate a summary for our clients.
Right now we have created the button using a default body field as a source and also the target. The "Summarize" button creates a summary and the hapend it to the body field both in the Body text and summary.

I thought that by setteing the "key" field to "summary" in the form display option that could work but then nothing happen.

Is there a way to target only the Summary of a formatted long text with summary?

Also is there a way with prompt or config to limit the number of characters for a generation? I tryed setting a low amount of token and also asked in th prompt to limit to 150 characters but then it looks like the result is trimmed in the middle of a sentence so it does not make sens for readers.

Thanks for any help with that

💬 Support request
Status

Fixed

Version

1.1

Component

User interface

Created by

🇧🇪Belgium davidiio

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @davidiio
  • Status changed to Closed: works as designed over 1 year ago
  • 🇦🇺Australia murrayw

    Unfortunately, at this stage it is not possible to target the Summary field when it is part of the body. This is a limitation of the module as tehre is no way to target the field properties in this way.

    In order to achieve what you want, the Summary would need to be split from the Body field so that it could be targetted individually.

    For the future this could be a feature request. Adding it in would require a fair bit of effort as field widgets and Actions would need to be updated in order to support it. We do not want to support this at this time.

    As a workaround, you could define your own field widget that specifically targetted the summary field. So, it would be possible to take what is in the module and adapt it to your own purposes.

  • 🇧🇪Belgium davidiio

    Thanks Murrrayw for your answer and solutions options.
    Much appreciated!

  • Assigned to mandclu
  • Status changed to Active over 1 year ago
  • 🇨🇦Canada mandclu

    I believe I have a way to make this work, having implemented something similar for another module.

  • @mandclu opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇨🇦Canada mandclu

    Moving this to a new 1.1.x branch. Also worth noting that to restrict the character count, I set the content of the User message in my Augmentor to be:

    Create an SEO friendly meta description of up to 200 characters for the following text, using the same language as the input:
    
    {input}
    • mandclu committed 56beb9ed on 1.1.x
      Issue #3358807 by mandclu: Targeting the Summary field of a long...
  • Status changed to Fixed over 1 year ago
  • 🇨🇦Canada mandclu

    Merged in, and will include this in a new beta release.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024