geekyrakshit commited on
Commit
9a6c015
·
1 Parent(s): c052c0a

add: installation instructions

Browse files
README.md CHANGED
@@ -1,40 +1,3 @@
1
  # MedRAG Multi-Modal
2
 
3
  Multi-modal RAG for medical docmain.
4
-
5
- ## Installation
6
-
7
- ### For Development
8
-
9
- For MacOS, you need to run
10
-
11
- ```bash
12
- brew install poppler
13
- ```
14
-
15
- For Debian/Ubuntu, you need to run
16
-
17
- ```bash
18
- sudo apt-get install -y poppler-utils
19
- ```
20
-
21
- Then, you can install the dependencies using uv in the virtual environment `.venv` using
22
-
23
- ```bash
24
- git clone https://github.com/soumik12345/medrag-multi-modal
25
- cd medrag-multi-modal
26
- pip install -U pip uv
27
- uv sync
28
- ```
29
-
30
- After this, you need to activate the virtual environment using
31
-
32
- ```bash
33
- source .venv/bin/activate
34
- ```
35
-
36
- In the activated virtual environment, you need to install Flash Attention using
37
-
38
- ```bash
39
- uv pip install flash-attn --no-build-isolation
40
- ```
 
1
  # MedRAG Multi-Modal
2
 
3
  Multi-modal RAG for medical docmain.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docs/index.md CHANGED
@@ -33,7 +33,7 @@ After this, you need to activate the virtual environment using
33
  source .venv/bin/activate
34
  ```
35
 
36
- In the activated virtual environment, you need to install Flash Attention using
37
 
38
  ```bash
39
  uv pip install flash-attn --no-build-isolation
 
33
  source .venv/bin/activate
34
  ```
35
 
36
+ In the activated virtual environment, you can optionally install Flash Attention (required for ColPali) using
37
 
38
  ```bash
39
  uv pip install flash-attn --no-build-isolation
docs/installation/development.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Setting up the development environment
2
+
3
+ ## Install Poppler
4
+
5
+ For MacOS, you need to run
6
+
7
+ ```bash
8
+ brew install poppler
9
+ ```
10
+
11
+ For Debian/Ubuntu, you need to run
12
+
13
+ ```bash
14
+ sudo apt-get install -y poppler-utils
15
+ ```
16
+
17
+ ## Install the dependencies
18
+
19
+ Then, you can install the dependencies using uv in the virtual environment `.venv` using
20
+
21
+ ```bash
22
+ git clone https://github.com/soumik12345/medrag-multi-modal
23
+ cd medrag-multi-modal
24
+ pip install -U pip uv
25
+ uv sync
26
+ ```
27
+
28
+ After this, you need to activate the virtual environment using
29
+
30
+ ```bash
31
+ source .venv/bin/activate
32
+ ```
33
+
34
+ ## [Optional] Install Flash Attention
35
+
36
+ In the activated virtual environment, you can optionally install Flash Attention (required for ColPali) using
37
+
38
+ ```bash
39
+ uv pip install flash-attn --no-build-isolation
40
+ ```
docs/installation/install.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+
3
+ You just need to clone the repository and run the install.sh script
4
+
5
+ ```bash
6
+ git clone https://github.com/soumik12345/medrag-multi-modal
7
+ cd medrag-multi-modal
8
+ sh install.sh
9
+ ```
mkdocs.yml CHANGED
@@ -59,6 +59,9 @@ extra_javascript:
59
 
60
  nav:
61
  - Home: 'index.md'
 
 
 
62
  - Document Loader:
63
  - Text Loader: 'document_loader/load_text.md'
64
  - Text and Image Loader: 'document_loader/load_text_image.md'
 
59
 
60
  nav:
61
  - Home: 'index.md'
62
+ - Setup:
63
+ - Installation: 'installation/install.md'
64
+ - Development: 'installation/development.md'
65
  - Document Loader:
66
  - Text Loader: 'document_loader/load_text.md'
67
  - Text and Image Loader: 'document_loader/load_text_image.md'