File size: 1,027 Bytes
93e1b64
 
 
 
 
 
 
 
 
 
 
2408e3d
93e1b64
 
de5723b
93e1b64
 
2408e3d
de5723b
2408e3d
 
 
93e1b64
 
72dd57e
de5723b
 
 
 
2408e3d
de5723b
 
 
72dd57e
de5723b
 
 
 
 
2408e3d
 
de5723b
2408e3d
de5723b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: Klìnic
emoji: 👍🏻
colorFrom: pink
colorTo: blue
sdk: streamlit
sdk_version: 1.34.0
app_file: app.py
pinned: false
---

# Klìnic

## Architecture

![alt text](.assets/architecture.png "Architecture")

## Prerequisites

- [git lfs](https://git-lfs.com/)
- `pip install -r requirements.txt`

## Setup

1. Get pre-processed data (large files are stored using Git LFS - you need to have it installed)
   ```Shell
   git lfs fetch --all
   git lfs checkout
   ```
2. Start the IRIS Docker container:
   ```Shell
   docker-compose up -d
   ```
3. Open a Jupyter notebook we've created to populate the database and run all the cells: [database.ipynb](./database.ipynb)
4. create a .env file and add the following variable:
   ```
   OPENAI_API_KEY=<your-openai-api-key>
   ```
5. Run the app: `streamlit run app.py`

## Debugging

- Navigate to http://localhost:52773/csp/sys/UtilHome.csp to access IRIS and login with username: `demo`, password: `demo`
  - You can execute SQL queries at 'System Explorer' → 'SQL'