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
Copy file name to clipboardExpand all lines: README.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,24 @@ To have it up and running please execute the following steps:
52
52
[Download and install Ollama](https://ollama.com/download)
53
53
[Download and install Docker](https://www.docker.com/products/docker-desktop/)
54
54
55
+
> ### Setting Up Ollama on a Remote Host
56
+
>
57
+
> To connect to an external Ollama instance, set the environment variable: `OLLAMA_HOST=http://address:port`, e.g.:
58
+
> ```bash
59
+
> OLLAMA_HOST=http(s)://127.0.0.1:5000
60
+
>```
61
+
>
62
+
> If you want to disable the local Ollama model, use env `DISABLE_LOCAL_OLLAMA=1`, e.g.
63
+
>```bash
64
+
> DISABLE_LOCAL_OLLAMA=1 make install
65
+
>```
66
+
>**Note**: When local Ollama is disabled, ensure the required model is downloaded on the external instance.
67
+
>
68
+
> Currently, the `DISABLE_LOCAL_OLLAMA` variable cannot be used to disable Ollama in Docker. As a workaround, remove the `ollama` service from `docker-compose.yml` or `docker-compose.gpu.yml`.
69
+
>
70
+
> Support forusing the variablein Docker environments will be added in a future release.
71
+
72
+
55
73
### Clone the Repository
56
74
57
75
First, clone the repository and change current directory to it:
@@ -170,7 +188,7 @@ Then modify the variables inside the file:
170
188
```bash
171
189
#APP_ENV=production # sets the app into prod mode, otherwise dev mode with auto-reload on code changes
172
190
REDIS_CACHE_URL=redis://localhost:6379/1
173
-
STORAGE_PROFILE_PATH=/storage_profiles
191
+
STORAGE_PROFILE_PATH=./storage_profiles
174
192
LLAMA_VISION_PROMPT="You are OCR. Convert image to markdown."
The `ocr`command can store the results using the `storage_profiles`:
286
-
-**storage_profile**: Used to save the result - the `default` profile (`/storage_profiles/default.yaml`) is used by default; if empty file is not saved
304
+
- **storage_profile**: Used to save the result - the `default` profile (`./storage_profiles/default.yaml`) is used by default;if empty file is not saved
287
305
- **storage_filename**: Outputting filename - relative path of the `root_path`setin the storage profile - by default a relative path to `/storage` folder; can use placeholders for dynamic formatting: `{file_name}`, `{file_extension}`, `{Y}`, `{mm}`, `{dd}` - for date formatting, `{HH}`, `{MM}`, `{SS}` - fortime formatting
- **ocr_cache**: Whether to cache the OCR result (true or false).
382
400
- **prompt**: When provided, will be used for Ollama processing the OCR result
383
401
- **model**: When provided along with the prompt - this model will be used for LLM processing
384
-
-**storage_profile**: Used to save the result - the `default` profile (`/storage_profiles/default.yaml`) is used by default; if empty file is not saved
402
+
- **storage_profile**: Used to save the result - the `default` profile (`./storage_profiles/default.yaml`) is used by default; if empty file is not saved
385
403
- **storage_filename**: Outputting filename - relative path of the `root_path` set in the storage profile - by default a relative path to `/storage` folder; can use placeholders for dynamic formatting: `{file_name}`, `{file_extension}`, `{Y}`, `{mm}`, `{dd}` - for date formatting, `{HH}`, `{MM}`, `{SS}` - for time formatting
0 commit comments