Back to AI Q&A
What should I do if Hermes Agent pastes a long text and loses content?

What should I do if Hermes Agent pastes a long text and loses content?

AI Q&A Admin 121 views

The safest way to deal with long text is not to continue to hard-paste it into the chat box, but to save the content as a file and then reference it with filename. Some people in the community also reminded that large sections of multi-line content are easily dismantled by terminals, chat platforms or intermediate layers.

Recommended practice

  1. Save long logs, configurations, and error stacks as a single file, such as error.log or config.yaml.
  2. In Hermes Agent, type: 请阅读 error.log 并找出根因.
  3. If it is multiple files, reference them separately and do not cram in a very long message.
  4. When you need to keep the line number, let Hermes read the file directly instead of copying it to the chat box.

When must a document be used

Logs, YAML, JSON, code diffs, CSV, and web pages with more than dozens of lines are recommended to be referenced. In this way, the model gets complete content, and the search and positioning are more reliable.

In a word: Don't stick long texts, save them as files and then use filename.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More