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.
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.
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.
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.
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.