运行报错,搜索时报错如下

Open
#285 0 comments 0 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
search

Research direction

Start at mindsearch/agent/graph.py line 263 and trace the generated command that reaches WebSearchGraph.add_edge; compare the call using the endNode argument with the method definition. Reproduce the reported search failure and confirm the search path completes without this TypeError.

Written by the indexing model from the issue text.

Description

ERROR:root:Exception in sync_generator_wrapper: WebSearchGraph.add_edge() got an unexpected keyword argument 'endNode'
Traceback (most recent call last):
File "/Users/jiaoshoudu/development/MindSearch/mindsearch/app.py", line 90, in sync_generator_wrapper
for response in agent(inputs, session_id=session_id):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiaoshoudu/development/MindSearch/mindsearch/agent/streaming.py", line 19, in call
for response_message in self.forward(*message, session_id=session_id, **kwargs):
File "/Users/jiaoshoudu/development/MindSearch/mindsearch/agent/mindsearch_agent.py", line 105, in forward
for graph_exec in gen:
File "/opt/anaconda3/envs/py3/lib/python3.12/site-packages/lagent/utils/util.py", line 138, in iter
self.ret = yield from self.generator
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiaoshoudu/development/MindSearch/mindsearch/agent/graph.py", line 263, in run
exec(command, global_dict, local_dict)
File "", line 28, in
TypeError: WebSearchGraph.add_edge() got an unexpected keyword argument 'endNode'

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.