Skip to content

Commit

Permalink
Update langchain.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doodledood committed Nov 15, 2023
1 parent 49d395c commit d4d9d32
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions chatflock/composition_generators/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def create_compose_chat_participants_system_prompt(self, chat: "Chat") -> str:
"they can, each in their complementary own way.",
"If you add a team, generate a name, and a mission for the team, in the same way.",
"Always try to add or complete a comprehensive composition of participants that have "
"orthogonal and complementary specialities, skills, roles, and missions (whether they are teams or "
"orthogonal and complementary specialties, skills, roles, and missions (whether they are teams or "
"individuals). You may not necessarily have the option to change this composition later, so make sure "
"you summon the right participants.",
]
Expand Down Expand Up @@ -219,7 +219,7 @@ def create_compose_chat_participants_system_prompt(self, chat: "Chat") -> str:
"step-by-step manner by looking at all the inputs.",
"Assess if the current participants are sufficient for ideally contributing to the goal.",
"If insufficient, summon additional participants (or teams) as needed.",
"If some participants are unnecessary, remove them.",
"If some participants (individuals or teams) are unnecessary, remove them.",
"Update the interaction schema and termination condition to accommodate changes in "
"participants.",
],
Expand All @@ -240,6 +240,11 @@ def create_compose_chat_participants_system_prompt(self, chat: "Chat") -> str:
"actual companies of people.",
"This team will contain a group of internal individual (or even sub-teams) "
"participants. Do not worry about the team's composition at this point.",
"Include a team name, mission, and a composition suggestion for the members of "
"the team (could be individuals or more teams again). Ensure the suggestion "
"contains an indication of whether a participant is an individual or a team. "
'Format like: "Name: ...\nMission: ...\nComposition Suggestion: '
'NAME (individual), NAME (individual), NAME (Team), NAME (Team)..."',
],
),
Section(
Expand Down Expand Up @@ -297,7 +302,7 @@ def create_compose_chat_participants_system_prompt(self, chat: "Chat") -> str:
Section(
name="Orthogonality of Participants",
list=[
"Always strive to have participants with orthogonal skills, roles, and specialities. "
"Always strive to have participants with orthogonal skills, roles, and specialties. "
"That includes personal missions, as well.",
"Shared skills and missions is a waste of resources. Aim for maximum coverage of "
"skills, roles, specialities and missions.",
Expand Down

0 comments on commit d4d9d32

Please sign in to comment.