Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Amith Koujalgi committed Nov 11, 2023
1 parent 2d9eba1 commit 70b8530
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The LLMs are downloaded and served via [Ollama](https://github.com/jmorganca/oll
- [Requirements](#requirements)
- [How to run](#how-to-run)
- [Demo](#demo)
- [Improvements](#improvements)
- [Credits](#credits)

#### Requirements
Expand All @@ -22,7 +23,7 @@ The LLMs are downloaded and served via [Ollama](https://github.com/jmorganca/oll

#### How to run

Define a `docker-compose.yml` and add the following contents into the file.
Define a `docker-compose.yml` by adding the following contents into the file.

```yaml
services:
Expand Down Expand Up @@ -58,6 +59,11 @@ docker-compose up

When the server is up and running, access the app at: http://localhost:8501

Note:
- It takes a while to start up since it downloads the specified model for the first time.
- If your hardware does not have a GPU and you choose to run only on CPU, expect high response time from the bot.
- Only Nvidia is supported as mentioned in Ollama's documentation. Others such as AMD isn't supported yet. Read how to use GPU on [Ollama container](https://hub.docker.com/r/ollama/ollama) and [docker-compose](https://docs.docker.com/compose/gpu-support/#:~:text=GPUs%20are%20referenced%20in%20a,capabilities%20.).

Image on DockerHub: https://hub.docker.com/r/amithkoujalgi/pdf-bot

#### [Demo](https://www.youtube.com/watch?v=jJyFslR-oNQ):
Expand All @@ -70,6 +76,9 @@ Sample PDFs:

[HL-B2080DW v0522.pdf](https://github.com/amithkoujalgi/ollama-pdf-bot/files/13323208/HL-B2080DW.v0522.pdf)

#### Improvements

- [ ] Expose model params such as `temperature`, `top_k`, `top_p` as configurable env vars

#### Credits

Expand Down

0 comments on commit 70b8530

Please sign in to comment.