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

question about advanced mode #4

Open
Zephyr1022 opened this issue Nov 5, 2024 · 1 comment
Open

question about advanced mode #4

Zephyr1022 opened this issue Nov 5, 2024 · 1 comment

Comments

@Zephyr1022
Copy link

Zephyr1022 commented Nov 5, 2024

`

STEP 2.2. other MDTs Process (intermidiate)

assessments = []
for group_instance in group_instances:
    if 'initial' not in group_instance.goal.lower() and 'iap' not in group_instance.goal.lower():
        assessment = group_instance.interact(comm_type='internal')
        assessments.append([group_instance.goal, assessment])

assessment_report = ""
for idx, assess in enumerate(assessments):
    assessment_report += f"Group {idx+1} - {assess[0]}\n{assess[1]}\n\n"

# STEP 2.3. FRDT Process
final_decisions = []
for group_instance in group_instances:
    if 'review' in group_instance.goal.lower() or 'decision' in group_instance.goal.lower() or 'frdt' in group_instance.goal.lower():
        decision = group_instance.interact(comm_type='internal')
        final_decisions.append([group_instance.goal, decision])

compiled_report = ""
for idx, decision in enumerate(final_decisions):
    compiled_report += f"Group {idx+1} - {decision[0]}\n{decision[1]}\n\n"

STEP 3. Final Decision

decision_prompt = f"""You are an experienced medical expert. Now, given the investigations from multidisciplinary teams (MDT), please review them very carefully and return your final decision to the medical query."""
tmp_agent = Agent(instruction=decision_prompt, role='decision maker', model_info=model)
tmp_agent.chat(decision_prompt)

final_decision = tmp_agent.temp_responses(f"""Investigation:\n{initial_assessment_report}\n\nQuestion: {question}""", img_path=None)

`

I was just curious that did you use the step 2.2 and 2.3 result for final decision?
because based on the code, final decision only depends on initial assessment

final_decision = tmp_agent.temp_responses(f"""Investigation:\n{initial_assessment_report}\n\nQuestion: {question}""", img_path=None)

@TaoSunVoyage
Copy link

Meanwhile, it appears that there is redundancy between step 2.2 and step 2.3. For instance, a group with the goal "FRDT" would be unnecessarily activated twice, once in step 2.2 and again in step 2.3.

step 2.2

if 'initial' not in group_instance.goal.lower() and 'iap' not in group_instance.goal.lower():

step 2.3

if 'review' in group_instance.goal.lower() or 'decision' in group_instance.goal.lower() or 'frdt' in group_instance.goal.lower():

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

No branches or pull requests

2 participants