Skip to content

Commit f60117e

Browse files
committed
Update set up instructions
1 parent a33d15d commit f60117e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
To install project dependencies, including development dependencies:
66

77
```console
8+
$ source venv/bin/activate;
9+
810
$ pip install -e '.[dev]'
911
```
1012

@@ -19,3 +21,25 @@ To run the test suite:
1921
```console
2022
$ pytest
2123
```
24+
25+
To run locally:
26+
27+
Pre-requisites:
28+
29+
Must have redis and lamma server up and running.
30+
31+
32+
```console
33+
$ docker compose -f opentelemetry_collector/docker-compose.yml up -d
34+
35+
$ REDIS_URL='redis://localhost:6379' LLAMA_SERVER_URL='http://localhost:11434' python3 -m ai_server.__main__
36+
```
37+
38+
Send Request:
39+
40+
Example
41+
42+
```curl
43+
curl --location 'localhost:5000/chat' \
44+
--form 'content="asdf asdf asdasdf ad"'
45+
```

0 commit comments

Comments
 (0)