File size: 708 Bytes
a099612
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Multimodal RAG with Granite Vision
short_description: RAG example using Granite [vision, embedding, instruct]  
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 5.16.1
app_file: src/rag_app.py
pinned: False
license: apache-2.0
---

# Granite Vision Demos

## Install

(copied from DEVELOP.md)
```shell
# add the poetry shell and export plugins (you only need to do this once on your machine)
poetry self add poetry-plugin-shell
poetry self add poetry-plugin-export

# create and activate a python virtual environment
poetry shell
poetry install
```


## Run Demos

### RAG
Run with lazy loading models:
```
LAZY_LOADING=true gradio src/rag_app.py
```

### QA

```
gradio src/qa_app.py
```