Problem/Motivation

The summary provided to the LLM by the search trims trailing "t" characters.

For example, a line which ends like: "the final word is last"

Comes out like: "the final word is las"

Proposed resolution

See "web/modules/contrib/ai_search_block/src/AiSearchBlockHelper.php:195"
`$newline = trim($line, '\t');` should be `$newline = trim($line, "\t");`

CommentFileSizeAuthor
#2 3549169-double-quotes.patch531 bytesd0t15t
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dotist created an issue. See original summary.

d0t15t’s picture

StatusFileSize
new531 bytes

I've added a patch.

lammensj made their first commit to this issue’s fork.

  • lammensj committed d1f8049e on 1.0.x
    [#3549169] feat: Search results trim trailing "t"s
    
    By: dotist
    By:...
lammensj’s picture

Assigned: d0t15t » Unassigned
Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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