You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3,200 +3,57 @@ title: Valetudo AI — Trusted Medical Answer Assistant
3
3
description: Sonar-powered medical assistant for fast, science-backed answers.
4
4
sidebar_position: 1
5
5
keywords: [medical, AI assistant, Perplexity Sonar]
6
-
---
7
-
6
+
---
7
+
8
8
# Valetudo AI
9
-
10
-
**Valetudo AI** is a Perplexity Sonar-powered assistant that delivers fast, reliable, and well-cited answers to medical questions. Designed for parents, patients, and students — it cuts through misinformation with smart filters, visual input, and prompt-based queries.
11
-
12
-
## Features
13
-
14
-
- **Answers with Citations:** Provides numbered scientific citations from a curated list of **10** trusted medical **sources**.
15
-
- **Advanced Filtering:** Allows users to filter results **by date and country** to get the most relevant information.
16
-
- **Image Upload:** Supports visual context for queries (e.g., **photos** of medications or conditions).
17
-
- **Prompt Templates:** Includes **7 categories** of pre-built prompts for common medical questions:
18
-
- Symptom-based advice
19
-
- Drug interaction checks
20
-
- Safety timing
21
-
- Safer treatments
22
-
- Compare effectiveness
23
-
- Recommended exercises
24
-
- Latest research
25
-
- **Clean & Simple UI:** Built with React and Tailwind CSS for a **user-friendly** experience.
26
-
27
-
## Prerequisites
28
-
29
-
Before installing and running Valetudo AI locally, ensure you have the following installed:
30
-
31
-
- **Node.js** (tested with v22.15.0) and **npm** – for running the frontend (React + Vite)
32
-
- **Python** (tested with v3.13.4) and **pip** – for the Flask backend
33
-
- **Git** – to clone the repository
34
-
- A valid **Perplexity API key** – required to query the Sonar API ([how to generate one](https://docs.perplexity.ai/getting-started/quickstart))
Create a `.env` file inside the `/backend` folder with the following content:
50
-
51
-
`PERPLEXITY_API_KEY=your_api_key_here`
52
-
53
-
> Refer to `/backend/.env.example` for guidance.
54
-
> Never commit your `.env` file to version control.
55
-
56
-
### 3. Start the frontend
57
-
58
-
```bash
59
-
npm install
60
-
npm run dev
61
-
```
62
-
63
-
### 4. Start the backend
64
-
65
-
```bash
66
-
cd backend
67
-
python -m venv venv
68
-
69
-
# Activate virtual environment
70
-
# On Windows:
71
-
venv\Scripts\activate
72
-
73
-
# On macOS/Linux:
74
-
source venv/bin/activate
75
-
76
-
pip install -r requirements.txt
77
-
python app.py
78
-
```
79
-
80
-
The app will be available at [http://localhost:5173](http://localhost:5173)
81
-
82
-
## Usage
83
-
84
-
Here are some ways to use Valetudo AI effectively:
85
-
86
-
### 1. Ask a health question
87
-
88
-
- Type a question like:
89
-
_"What to do if a 5-year-old has a fever?"_
90
-
- Click **"Ask AI"**
91
-
- Expand the full answer
92
-
- Hover over citation numbers to preview and copy links
93
-
94
-
### 2. Use filters
95
-
96
-
- Click **"Show advanced options"**
97
-
- Set a custom **date range**
98
-
- Choose a **country** to localize results
99
-
100
-
### 3. Upload an image
101
-
102
-
- Drag and drop or manually upload a photo (e.g., medication or condition)
103
-
- Ask: _"What is this medication?"_
104
-
- The AI will use image context in its response
105
-
106
-
### 4. Try prompt templates
107
-
108
-
- Click **"Try Prompts"**
109
-
- Select one of **7 categories**
110
-
- Fill in the fields and generate a ready-to-send query
111
-
- Use the **follow-up input** to refine or expand the conversation
112
-
113
-
## Code Explanation
114
-
115
-
### Perplexity API Integration
116
-
117
-
Valetudo AI leverages the Sonar API to its full potential. The core Q&A functionality is powered by [Perplexity Sonar Pro API](https://docs.perplexity.ai).
**Valetudo AI** is a science-backed medical assistant powered by the Perplexity Sonar API. It provides fast, clear, and well-cited answers to health questions — helping users cut through misinformation with filters, image analysis, and ready-made prompt templates.
11
+
12
+
Designed for conscious users — like parents, patients, and medical students — seeking reliable information.
13
+
14
+
## Features
15
+
16
+
-**Cited Answers** — sourced from a curated list of 10 trusted medical domains
17
+
-**Smart Filters** — by date and country for localized, up-to-date insights
18
+
-**Image Upload** — analyze photos of medication, conditions, or packaging
19
+
-**Prompt Templates** — 7 categories for symptom checks, drug safety, research, and more
20
+
-**Simple UI** — built with React and Tailwind CSS
21
+
22
+
## How It Uses the Sonar API
23
+
24
+
Valetudo AI integrates with [Perplexity Sonar Pro](https://docs.perplexity.ai), leveraging advanced features for domain-specific search and rich responses:
0 commit comments