sachinchandrankallar commited on
Commit
98fb43c
·
1 Parent(s): f91c303
ai_med_extract/__pycache__/app.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/__pycache__/app.cpython-311.pyc and b/ai_med_extract/__pycache__/app.cpython-311.pyc differ
 
ai_med_extract/agents/__pycache__/patient_summary_agent.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/agents/__pycache__/patient_summary_agent.cpython-311.pyc and b/ai_med_extract/agents/__pycache__/patient_summary_agent.cpython-311.pyc differ
 
ai_med_extract/agents/__pycache__/summarizer.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/agents/__pycache__/summarizer.cpython-311.pyc and b/ai_med_extract/agents/__pycache__/summarizer.cpython-311.pyc differ
 
ai_med_extract/api/__pycache__/routes.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/api/__pycache__/routes.cpython-311.pyc and b/ai_med_extract/api/__pycache__/routes.cpython-311.pyc differ
 
ai_med_extract/api/routes.py CHANGED
@@ -1146,8 +1146,6 @@ You are an expert clinical AI assistant. Your task is to generate a patient summ
1146
 
1147
  ### DATA TO SUMMARIZE ###
1148
  - PATIENT VISITS: {visits}
1149
- - BASELINE: {baseline}
1150
- - DELTAS: {delta_text}
1151
 
1152
  ### EXAMPLE OUTPUT FORMAT ###
1153
  ## Clinical Assessment
@@ -1165,7 +1163,7 @@ You are an expert clinical AI assistant. Your task is to generate a patient summ
1165
  - Review recent lab results when available.
1166
  </s>
1167
  <|user|>
1168
- Generate the 4-section patient summary in the exact format specified above.
1169
  </s>
1170
  <|assistant|>
1171
  ## Clinical Assessment
@@ -1175,11 +1173,12 @@ Generate the 4-section patient summary in the exact format specified above.
1175
  try:
1176
  raw_summary = pipeline.generate(
1177
  full_prompt,
1178
- max_tokens=2000,
1179
- temperature=0.1,
1180
- top_p=0.9,
1181
- # max_loops=3 # Allow up to 3 loops to complete sections
1182
- )
 
1183
  logger.info(f"GGUF raw summary length: {len(raw_summary)} chars")
1184
  except Exception as gen_error:
1185
  logger.error(f"GGUF generation failed: {gen_error}")
 
1146
 
1147
  ### DATA TO SUMMARIZE ###
1148
  - PATIENT VISITS: {visits}
 
 
1149
 
1150
  ### EXAMPLE OUTPUT FORMAT ###
1151
  ## Clinical Assessment
 
1163
  - Review recent lab results when available.
1164
  </s>
1165
  <|user|>
1166
+ Start summary.
1167
  </s>
1168
  <|assistant|>
1169
  ## Clinical Assessment
 
1173
  try:
1174
  raw_summary = pipeline.generate(
1175
  full_prompt,
1176
+ max_tokens=800, # Reduced from 2000. The summary should be concise.
1177
+ temperature=0.0, # Set to 0.0 for maximum determinism and often faster generation.
1178
+ top_p=1.0, # Set to 1.0 to consider all tokens, often faster than sampling with top_p < 1.0.
1179
+ # top_k=50, # Adding top_k can sometimes speed up sampling. 50 is a good balance.
1180
+ # repeat_penalty=1.1 # A small penalty can prevent loops and potentially speed up convergence.
1181
+ )
1182
  logger.info(f"GGUF raw summary length: {len(raw_summary)} chars")
1183
  except Exception as gen_error:
1184
  logger.error(f"GGUF generation failed: {gen_error}")
ai_med_extract/utils/__pycache__/model_loader_gguf.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/utils/__pycache__/model_loader_gguf.cpython-311.pyc and b/ai_med_extract/utils/__pycache__/model_loader_gguf.cpython-311.pyc differ
 
ai_med_extract/utils/__pycache__/model_manager.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/utils/__pycache__/model_manager.cpython-311.pyc and b/ai_med_extract/utils/__pycache__/model_manager.cpython-311.pyc differ
 
ai_med_extract/utils/__pycache__/openvino_summarizer_utils.cpython-311.pyc CHANGED
Binary files a/ai_med_extract/utils/__pycache__/openvino_summarizer_utils.cpython-311.pyc and b/ai_med_extract/utils/__pycache__/openvino_summarizer_utils.cpython-311.pyc differ