无法运行并报错`List index out of range: data_item["memory"]["agent.memory"][2]`

Open
#281 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
ai, search

Research direction

Start with mindsearch/agent/mindsearch_agent.py at _generate_references_from_graph and reproduce the failure in Chinese and English modes. Inspect the available entries in data_item["memory"]["agent.memory"] before the access at index 2; done means both modes produce search output without the reported IndexError.

Written by the indexing model from the issue text.

Description

使用中文模式searcher无法输出

使用英文模式,只能输出一步,然后报错:

File "/home/MindSearch/mindsearch/agent/mindsearch_agent.py", line 41, in _generate_references_from_graph
    assert data_item["memory"]["agent.memory"][2]["sender"].endswith("ActionExecutor")
IndexError: list index out of range

image

Dominant language
JavaScript
Stars
7k
Forks
684
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InternLM/MindSearch

All issues in InternLM/MindSearch

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.