Skip to content

Commit c7ffd29

Browse files
committed
Adjust README
1 parent 87d4c5c commit c7ffd29

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
- Docker (used by unit tests and as preferred way to start Ollama)
99
- Ollama (install it from [official site](https://ollama.com/download) or use it inside Docker container)
1010
- NVIDIA GPU (recommended) (checked on GeForce RTX 3060 12Gb)
11-
- On Linux to use GPU you need to install `nvidia-container-toolkit` according
12-
to [article](https://stackoverflow.com/questions/25185405/using-gpu-from-a-docker-container)
11+
- On Linux to use GPU you need to install `nvidia-container-toolkit` according
12+
to [article](https://stackoverflow.com/questions/25185405/using-gpu-from-a-docker-container)
1313

1414
## How to build application
1515

@@ -24,10 +24,9 @@ docker compose -f docker-compose-prod.yml up
2424
```
2525
or use [run-all.bat](run-all.bat) script
2626

27-
## How to ask question to AI
27+
## How to ask question to AI model
2828

2929
Send POST request to `/api/generate` endpoint exposed by service with question inside `prompt` field of request body.
30-
3130
For example:
3231
```shell
3332
curl -i -H 'Content-Type: application/json' \
@@ -41,6 +40,20 @@ curl -i -H 'Content-Type: application/json' \
4140
-X POST http://localhost:8090/api/generate
4241
```
4342

43+
```shell
44+
curl -i -H 'Content-Type: application/json' \
45+
-d '{ "prompt": "Write code of bubble sort using Java" }' \
46+
-X POST http://localhost:8090/api/generate
47+
```
48+
49+
Or you could use prepared collection of Postman requests from [postman folder](postman). Just import them into your
50+
Postman
51+
52+
## Video with description of the project
53+
54+
[//]: # ([YouTube link](https://youtu.be/SoDIjw-Ov8o))
55+
[![YouTube link](https://markdown-videos-api.jorgenkh.no/url?url=https%3A%2F%2Fyoutu.be%2FSoDIjw-Ov8o)](https://youtu.be/SoDIjw-Ov8o)
56+
4457
## Appendix: communication with Ollama started inside a Docker container
4558

4659
According to [instruction](https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image)

0 commit comments

Comments
 (0)