Spaces:
Running
Running
Commit
Β·
c4f1d8e
1
Parent(s):
cdee10f
Update readme file
Browse files
README.md
CHANGED
@@ -1,90 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Healthcare AI Assistant
|
2 |
|
3 |
-
A
|
4 |
|
5 |
## Features
|
6 |
|
7 |
-
-
|
8 |
-
-
|
9 |
-
-
|
10 |
-
-
|
11 |
-
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
1. Create a virtual environment:
|
16 |
-
```bash
|
17 |
-
python -m venv venv
|
18 |
-
source venv/bin/activate # On Windows: venv\Scripts\activate
|
19 |
-
```
|
20 |
|
21 |
-
|
22 |
-
```bash
|
23 |
-
pip install -r requirements.txt
|
24 |
-
```
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
```
|
32 |
|
33 |
-
##
|
34 |
-
|
35 |
-
Start the FastAPI server:
|
36 |
-
```bash
|
37 |
-
uvicorn main:app --reload
|
38 |
-
```
|
39 |
-
|
40 |
-
The API will be available at `http://localhost:8000`
|
41 |
|
42 |
-
|
|
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
- Alternative API documentation: `http://localhost:8000/redoc`
|
47 |
|
48 |
-
##
|
49 |
|
50 |
-
|
51 |
-
|
|
|
52 |
|
53 |
-
|
54 |
-
```json
|
55 |
-
{
|
56 |
-
"query": "string",
|
57 |
-
"language": "string (optional)"
|
58 |
-
}
|
59 |
-
```
|
60 |
|
61 |
-
|
62 |
-
```json
|
63 |
-
{
|
64 |
-
"routing_info": {
|
65 |
-
"endpoint": "string",
|
66 |
-
"method": "string",
|
67 |
-
"parameters": {}
|
68 |
-
},
|
69 |
-
"api_response": {},
|
70 |
-
"user_friendly_response": "string",
|
71 |
-
"detected_language": "string",
|
72 |
-
"sentiment": {
|
73 |
-
"compound": float,
|
74 |
-
"pos": float,
|
75 |
-
"neu": float,
|
76 |
-
"neg": float
|
77 |
-
}
|
78 |
-
}
|
79 |
-
```
|
80 |
|
81 |
-
|
82 |
-
Health check endpoint.
|
83 |
|
84 |
-
|
85 |
-
```json
|
86 |
-
{
|
87 |
-
"status": "healthy",
|
88 |
-
"service": "healthcare-ai-assistant"
|
89 |
-
}
|
90 |
-
```
|
|
|
1 |
+
---
|
2 |
+
title: Healthcare AI Assistant
|
3 |
+
emoji: π₯
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
sdk_version: 1.0.0
|
8 |
+
app_file: main.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
# Healthcare AI Assistant
|
13 |
|
14 |
+
A multilingual AI assistant for healthcare appointment management, built with FastAPI and LangChain.
|
15 |
|
16 |
## Features
|
17 |
|
18 |
+
- π€ AI-powered appointment management
|
19 |
+
- π Multi-language support (English & Arabic)
|
20 |
+
- π
Smart appointment scheduling
|
21 |
+
- π― Intent recognition
|
22 |
+
- π¬ Natural language processing
|
23 |
+
- π Sentiment analysis
|
24 |
+
- π Language detection
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
## Technical Stack
|
|
|
|
|
|
|
27 |
|
28 |
+
- FastAPI for API endpoints
|
29 |
+
- LangChain for AI processing
|
30 |
+
- Ollama for LLM integration
|
31 |
+
- HuggingFace for language models
|
32 |
+
- Docker for containerization
|
|
|
33 |
|
34 |
+
## API Endpoints
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
### POST /query
|
37 |
+
Process user queries and return AI-generated responses.
|
38 |
|
39 |
+
### GET /health
|
40 |
+
Health check endpoint for service monitoring.
|
|
|
41 |
|
42 |
+
## Configuration
|
43 |
|
44 |
+
The service requires the following environment variables:
|
45 |
+
- `API_BASE_URL`: Base URL for the backend API
|
46 |
+
- `API_KEY`: Authentication key for API access
|
47 |
|
48 |
+
## Deployment
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
+
This service is containerized using Docker and can be deployed on any platform that supports Docker containers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
+
## License
|
|
|
53 |
|
54 |
+
MIT License
|
|
|
|
|
|
|
|
|
|
|
|