Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minion #1441

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Minion #1441

wants to merge 9 commits into from

Conversation

femto
Copy link
Contributor

@femto femto commented Aug 7, 2024

Features
Minion Design

Check examples/smart_minion/brain.py
you can try all different example, I just comment them out.

obs, score, *_ = await brain.step(query="what's the solution 234*568")
  # obs, score,*_ = await brain.step(query="what's the solution for  game of 24 for 4 3 9 8")
  # obs, score,*_ = await brain.step(query="what's the solution for  game of 24 for 2 5 11 8")
  # obs, score,*_ = await brain.step(query="solve x=1/(1-beta^2*x) where beta=0.85")

  # obs, score, *_ = await brain.step(
  #     query="Write a 500000 characters novel named 'Reborn in Skyrim'. "
  #           "Fill the empty nodes with your own ideas. Be creative! Use your own words!"
  #           "I will tip you $100,000 if you write a good novel."
  #           "since the novel is very long, you may need to divide into subtasks"
  # )
  #     obs, score, *_ = await brain.step(query=
  #     """
  #     2024阿里巴巴全球数学竞赛
  #
  # 问题1
  #
  # 几位同学假期组成一个小组去某市旅游.该市有6座塔,它们的位置分别为A,B,C,D,B,F。
  #
  # 同学们自由行动一段时间后,每位同学都发现,自己在所在的位置只能看到位于A,B,C,D 处的四座塔,而看不到位于E 和F的塔。已知
  #
  # (1)同学们的位置和塔的位置均视为同一平面上的点,且这些点彼此不重合:
  #
  # (2) A,B,C,D,E,F中任意3点不共线:
  #
  # (3) 看不到塔的唯一可能就是视线被其它的塔所阻挡,例如,如果某位同学所在的位置P 和A,B 共线,且A 在线段PB上,那么该同学就看不到位于B 处的塔。
  #
  # 请问,这个旅游小组最多可能有多少名同学?
  #
  # (A)3 (B) 4 (C)6 (D) 12
  #     """)
  print(obs)

Depends on intercode

git clone https://github.com/princeton-nlp/intercode
docker build -t intercode-python -f docker/python.Dockerfile .

make sure container name intercode-python_ic_ctr is listenning on 3006, the PythonEnv seemed start the container, but can't map port

docker run -d -p 3006:3006 --name intercode-python_ic_ctr intercode-python

Feature Docs

Influence

Result

Other


obs, score, *_ = await brain.step(query="what's the solution 234*568")
# obs, score,*_ = await brain.step(query="what's the solution for game of 24 for 4 3 9 8")
# obs, score,*_ = await brain.step(query="what's the solution for game of 24 for 2 5 11 8")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单纯好奇,这个套方法做Game24正确率高吗

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你自己试啊,我这些都是可以跑的。
我这两个例子都是100%

)


ASK_PROMPT = """context:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

数量较多的 PROMPT 与 TEMPLATE 不然另开一个文件?

{input.query}
"""

ASK_PROMPT2 = """context:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

能否换一个命名,阐述ASK_PROMPT与ASK_PROMPT2的差异


plan = await ActionNode.from_pydantic(Plan).fill(context=filled_template, llm=self.brain.llm, schema="raw")

plan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是多写了,以及下面大段注释可以删一下

ASK_PROMPT
+ """

also please check previous error, do the modification according to previous error if there's previous error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre commit 格式化一下

Mind(
id="left_mind",
description="""
I'm the left mind, adept at logical reasoning and analytical thinking. I excel in tasks involving mathematics, language, and detailed analysis. My capabilities include:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants