Skip to content

Commit

Permalink
Update mindmap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudhendra committed Oct 21, 2024
1 parent 4958517 commit 0ae3ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mindmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def generate_mindmap(query, relevant_passages, answer, all_data):

# Generate mindmap content using OpenAI
response = client.chat.completions.create(
model="gpt-3.5-turbo",
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "Create a detailed mindmap structure based on the given query. Use Markdown format with # for main topics, ## for subtopics, and ### for further details. Ensure comprehensive coverage of the USMLE Step 1 syllabus. Start with the main topic using a single #. Focus on creating a balanced structure with meaningful connections between topics."},
{"role": "user", "content": f"Query: {query}\nContext: {context}\nAnswer: {answer}\nCreate a detailed mindmap structure in Markdown format, ensuring a balanced and interconnected structure:"}
Expand All @@ -22,7 +22,7 @@ def generate_mindmap(query, relevant_passages, answer, all_data):

# Generate analysis and summary
analysis_response = client.chat.completions.create(
model="gpt-3.5-turbo",
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "Analyze the mindmap and provide a detailed analysis of how the query relates to other topics in the USMLE Step 1 syllabus. Focus on the interconnections between different branches of the mindmap."},
{"role": "user", "content": f"Query: {query}\nMindmap structure:\n{mindmap_structure}\nProvide a detailed analysis, highlighting the connections between topics:"}
Expand Down

0 comments on commit 0ae3ece

Please sign in to comment.