Skip to content

The search function outputs too much content, causing the context window to be filled #48

@g1331

Description

@g1331
Image Image

I'm not sure if there are any related configurations to control this at the moment, but I think the following strategies could be adopted to solve it:

  1. Configure a maximum length, and if it exceeds the maximum length, truncate it and add a field describing how much information was truncated due to being too long.
  2. Configure a maximum length, and if it exceeds the maximum length, directly return a message stating Search results are too long, modify the search matching mode to obtain more accurate content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions