Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h3>{{ _('Microsoft Ignite & Azure AI Expert') }}</h3>
</div>
<div class="card">
<h3>{{ _('AI Diagnostic Specialist') }}</h3>
<p>{{ _('Professional assistant for medical diagnostics, symptom analysis, and healthcare information.') }}</p>
<p>{{ _('Expert diagnostic assistance for all diseases, with specialized focus on cancer and heart disease.') }}</p>
</div>
<div class="card">
<h3>{{ _('E-shop Specialist') }}</h3>
Expand Down Expand Up @@ -261,8 +261,8 @@ <h3>{{ _('E-shop & E-commerce Support') }}</h3>
<h2>{{ _('AI Diagnostic Specialist') }}</h2>
<div class="service-cards">
<div class="card">
<h3>{{ _('Diagnostic & Healthcare Support') }}</h3>
<p>{{ _('Enter your request for symptom analysis, diagnostic procedure information, or healthcare guidance below.') }}</p>
<h3>{{ _('Global Diagnostic & Medical Support') }}</h3>
<p>{{ _('Enter your request for diagnostic assistance regarding any disease, including cancer and heart disease, or general healthcare guidance below.') }}</p>
<textarea id="diagnostic-input" placeholder="{{ _('Your diagnostic request') }}" class="styled-textarea" rows="4"></textarea>
<button id="diagnostic-btn" class="btn">{{ _('Submit') }}</button>
<div class="response-container" id="diagnostic-response-container">
Expand Down
15 changes: 9 additions & 6 deletions google_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,16 +1419,19 @@ def provide_microsoft_ignite_assistance(prompt: str) -> str:

def provide_diagnostic_assistance(prompt: str) -> str:
"""
Provides assistance as an AI Diagnostic Specialist using Vertex AI.
Provides assistance as an AI Diagnostic Specialist using Vertex AI, covering all diseases with a focus on cancer and heart disease.
"""
model = GenerativeModel("gemini-1.5-flash")

generation_prompt = f"""
You are an expert AI Diagnostic Specialist and Medical Assistant.
Your task is to provide professional, accurate, and detailed information related to symptoms, potential conditions, and medical diagnostics.
Your expertise includes:
- Symptom Analysis: Providing information about potential causes for various symptoms described by the user.
- Diagnostic Procedures: Explaining common medical tests, scans, and laboratory procedures.
You are an expert AI Diagnostic Specialist and Medical Assistant with a global health perspective.
Your task is to provide professional, accurate, and detailed information related to symptoms, potential conditions, and medical diagnostics for all types of diseases.
You have specialized expertise in:
- Chronic and Infectious Diseases: Providing insights into a wide range of global health issues.
- Oncology (Cancer): Detailed information on various types of cancer, screening methods, and diagnostic markers.
- Cardiology (Heart Disease): Expertise in cardiovascular health, identifying symptoms of heart conditions, and explaining diagnostic tests like EKGs and stress tests.
- Symptom Analysis: Providing information about potential causes for various symptoms described by the user across all medical fields.
- Diagnostic Procedures: Explaining common medical tests, scans, and laboratory procedures used in modern medicine.
- Medical Terminology: Clarifying complex medical terms and concepts for patients.
- Health & Wellness: Offering general guidance on maintaining a healthy lifestyle and preventive care.
- Specialist Referrals: Suggesting which type of medical specialist might be appropriate for further consultation based on the symptoms.
Expand Down
5 changes: 4 additions & 1 deletion marketplace-frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const AI_SERVICES: AIService[] = [
{ id: 'blockchain', name: 'Blockchain Expert', category: 'Development', icon: Code2, description: 'Smart contract and blockchain solutions.' },
{ id: 'fintech', name: 'Fintech Strategist', category: 'Business', icon: CreditCard, description: 'Banking and financial technology consulting.' },
{ id: 'legal', name: 'Legal & Human Rights', category: 'Professional', icon: Scale, description: 'Expert legal research and advocacy support.' },
{ id: 'diagnostic', name: 'Medical Diagnostic', category: 'Health', icon: Stethoscope, description: 'Symptom analysis and healthcare information.' },
{ id: 'diagnostic', name: 'Medical Diagnostic', category: 'Health', icon: Stethoscope, description: 'Expert diagnostic assistance for all diseases, focusing on cancer and heart disease.' },
{ id: 'aerospace', name: 'Aerospace & Auto', category: 'Engineering', icon: Plane, description: 'Aeronautics and automotive technical guidance.' },
{ id: 'music', name: 'Music Producer', category: 'Arts', icon: Music, description: 'Beat production and artist marketing.' },
{ id: 'eshop', name: 'E-commerce Guru', category: 'Business', icon: ShoppingBag, description: 'Create and manage high-performing e-shops.' },
Expand Down Expand Up @@ -128,6 +128,9 @@ const App: React.FC = () => {
case 'fintech':
response = await aiService.getFinancialAdvice(servicePrompt);
break;
case 'diagnostic':
response = await aiService.getDiagnosticAssistance(servicePrompt);
break;
default:
// Fallback for demo purposes if specific endpoint isn't mapped in aiService yet
response = { data: { message: "This service is currently in demo mode. The full integration is coming soon!" } };
Expand Down
1 change: 1 addition & 0 deletions marketplace-frontend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const aiService = {
getWeather: (location: string) => apiClient.post('/weather', { location }),
getFinancialAdvice: (prompt: string) => apiClient.post('/finance/advice', { prompt }),
getGoogleSitesAssistance: (prompt: string) => apiClient.post('/google-sites/assistance', { prompt }),
getDiagnosticAssistance: (prompt: string) => apiClient.post('/diagnostic/assistance', { prompt }),
};

export const userService = {
Expand Down
Loading