ó
    ÁPjÆ  ã                   ó,   • S SK r S SKJr   " S S5      rg)é    N)Úloggerc                   óB   • \ rS rSrS
S\4S jjrS\S\\   S\4S jrSrg	)ÚMedicalAssistanté   Úmodelc                 ó   • Xl         g )N©r   )Úselfr   s     Ú>C:\Users\sufyan\Desktop\hospital-kiosk-ai\src\llm\assistant.pyÚ__init__ÚMedicalAssistant.__init__   s   € à�
ó    Úpatient_queryÚcontext_chunksÚreturnc                 ó¼   • SR                  U5      nSU SU S3n[        R                  " S5        [        R                  " U R
                  SUS./S9nUS	   S
   nU$ )Nz

---

aJ  You are generating a brief clinical reference note for a treating physician (not for the patient).
Use ONLY the medical reference text below to answer the patient's concern.
Do not make up information that is not in the reference text.
If the reference text does not contain relevant information, say so clearly.

Reference Text:
z

Patient Concern:
zÉ

Provide a short, clinically focused note (3-5 sentences) summarizing the relevant reference information for the physician, based only on the reference text above. Do not address the patient directly.zSending prompt to Ollama...Úuser)ÚroleÚcontent)r   ÚmessagesÚmessager   )Újoinr   ÚinfoÚollamaÚchatr   )r
   r   r   Úcontext_textÚpromptÚresponseÚanswers          r   r   ÚMedicalAssistant.answer   s   € à$×)Ñ)¨.Ó9ˆðð €ð ð €ð HðKˆô 	�ŠÐ1Ô2ä—;’;Ø—*‘*à¨FÑ3ðñ
ˆð ˜)Ñ$ YÑ/ˆàˆr   r	   N)zllama3.1:8b)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ústrr   Úlistr   Ú__static_attributes__© r   r   r   r      s,   † ñ˜cõ ð Cð ¸¸c¹ð Às÷ r   r   )r   Úsrc.core.loggerr   r   r(   r   r   Ú<module>r*      s   ðÛ å "÷"ò "r   