Spaces:
Sleeping
Sleeping
Update ComorbidityCheckerAgent.py
Browse files
ComorbidityCheckerAgent.py
CHANGED
|
@@ -10,6 +10,14 @@ from langchain_openai import ChatOpenAI
|
|
| 10 |
from langchain_community.vectorstores import Chroma
|
| 11 |
from embedding_manager import DirectoryEmbeddingManager
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
class ComorbidityCheckerAgent:
|
| 14 |
"""
|
| 15 |
Uses a two-step AI agent process to first identify potential comorbidities for a
|
|
@@ -55,7 +63,7 @@ class ComorbidityCheckerAgent:
|
|
| 55 |
"Your primary skill is to research disease patterns and then meticulously cross-reference them with patient records embeddings "
|
| 56 |
"to ensure accurate documentation and coding. You provide clear, evidence-based findings."
|
| 57 |
),
|
| 58 |
-
tools=[patient_chart_search],
|
| 59 |
verbose=True,
|
| 60 |
memory=False,
|
| 61 |
llm=self.llm,
|
|
|
|
| 10 |
from langchain_community.vectorstores import Chroma
|
| 11 |
from embedding_manager import DirectoryEmbeddingManager
|
| 12 |
|
| 13 |
+
SEED_SOURCES = [
|
| 14 |
+
"https://www.cms.gov/medicare/payment/medicare-advantage-rates-statistics/risk-adjustment",
|
| 15 |
+
"https://www.cms.gov/data-research/monitoring-programs/medicare-risk-adjustment-data-validation-program",
|
| 16 |
+
"https://www.cms.gov/files/document/fy-2024-icd-10-cm-coding-guidelines-updated-02/01/2024.pdf",
|
| 17 |
+
"https://www.aapc.com/blog/41212-include-meat-in-your-risk-adjustment-documentation/",
|
| 18 |
+
]
|
| 19 |
+
|
| 20 |
+
|
| 21 |
class ComorbidityCheckerAgent:
|
| 22 |
"""
|
| 23 |
Uses a two-step AI agent process to first identify potential comorbidities for a
|
|
|
|
| 63 |
"Your primary skill is to research disease patterns and then meticulously cross-reference them with patient records embeddings "
|
| 64 |
"to ensure accurate documentation and coding. You provide clear, evidence-based findings."
|
| 65 |
),
|
| 66 |
+
tools=[self.search_tool,patient_chart_search],
|
| 67 |
verbose=True,
|
| 68 |
memory=False,
|
| 69 |
llm=self.llm,
|