Commit History

Enhance agent instructions and tool usage guidelines for lung cancer queries. Added critical instructions for handling greetings and non-medical questions, specifying that tools should not be used in these cases. Updated the medical guidelines knowledge tool documentation to reinforce its exclusive use for medical inquiries. Improved clarity in the agent's purpose and tool usage rules to ensure accurate responses.
604d59e
Running

moazx commited on

Refine agent instructions for medical and non-medical queries. Clarified tool usage requirements, emphasizing that the "medical_guidelines_knowledge_tool" is mandatory for medical questions related to lung cancer, while non-medical questions should be answered directly without tools. Updated guidelines for side effect reporting and provider comparisons to enhance clarity and usability.
3d14718

moazx commited on

Enhance medical query handling by adding optional guideline parameter to API requests. Updated QueryRequest model to include 'guideline' field, allowing users to specify guideline providers (IASLC, NCCN, ASCO, ESMO, NICE) for tailored responses. Adjusted related functions to accommodate this new parameter. Updated documentation and examples accordingly.
670a96e

moazx commited on

Full file name source
05a4127

moazx commited on

updated the Lung Cancer PDF Loader for a better understanding of tables and context and added the new NCCN and IASLC Guidelines.
bfb7a15

moazx commited on

Refactor project for Lung Cancer AI Advisor: update app and API descriptions, modify .gitignore to exclude Jupyter notebooks, and remove outdated deployment documentation. Delete unused files and enhance logging for better traceability.
0176a31

moazx commited on

Update .env.example with OpenAI and LangSmith configuration, modify app.py to dynamically set the port for deployment, enhance CORS middleware to support additional local development origins, and improve document retrieval settings for more comprehensive context in responses.
0a5dcf9

moazx commited on

Enhance API security and functionality by adding authentication middleware and session management. Updated app.py to include the new auth router and integrated authentication checks for protected endpoints. Modified requirements.txt to include necessary libraries for session handling. Updated .env.example to include authentication credentials. Improved retrieval functions with query expansion for better medical term matching and enriched context in responses.
ddc9c77

moazx commited on

Add export router to app.py and update requirements.txt for document generation libraries
7a527fe

moazx commited on

Enhance automatic validation process in agent.py. Updated response handling to provide context and next steps when guidelines are not found, ensuring professionalism. Modified validation function to run silently in the background, logging results for backend analysis without displaying them to the user. Improved error handling and logging for validation failures.
bf93b8f

moazx commited on

Add session management endpoints to health and medical routers. Implemented functionality to retrieve active sessions, clear specific sessions, and clear all sessions. Updated ask and ask_stream endpoints to support optional session IDs for improved conversation continuity.
20953d6

moazx commited on

Refactor agent and tools for session-based memory management and side effect reporting. Removed medical answer validation tool, added session memory management class, and enhanced side effect reporting with LLM classification. Updated agent functions to support session IDs for improved conversation tracking.
2587e2c

moazx commited on

Fix ignore promplem inside dockerignore
138f333

moazx commited on

Add application files
a79df1f

moazx commited on

Initial commit
2a8faae

moazx commited on