希望添加对rl模型的支持

Open
#295 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
ai, frontend

Research direction

Start with frontend/mindsearch_streamlit.py, especially display_chat_history() around line 252, and reproduce the reported frontend traceback with the ds-r1 distilled Qwen 32B setup. Review how the frontend selects chat history and how model prompts are configured. Done means the reported frontend exception is resolved and the supported model can search questions instead of only generating code.

Written by the indexing model from the issue text.

Description

下载了ds-r1 蒸馏的qwen 32B,测试发现无法搜索问题而是在写代码,还没有更改代码中设定的提示词

Image

前端还有一些报错代码,后端没有

2025-02-12 00:17:55.984 Uncaught app execution
Traceback (most recent call last):
File "/home/xx/anaconda3/envs/mindsearch/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 121, in exec_func_with_error_handling
result = func()
File "/home/xx/anaconda3/envs/mindsearch/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 591, in code_to_exec
exec(code, module.dict)
File "/home/xx/MindSearch/frontend/mindsearch_streamlit.py", line 307, in
main()
File "/home/xx/MindSearch/frontend/mindsearch_streamlit.py", line 303, in main
display_chat_history()
File "/home/xx/MindSearch/frontend/mindsearch_streamlit.py", line 252, in display_chat_history
selected_node_key = st.session_state["already_used_keys"][-1]
IndexError: list index out of range

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.