-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
51 lines (39 loc) · 1.03 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
include ../Makefile
URL=https://www.rtasummit.com/agenda
QUERY='when and where does kishore speak in rtasummit'
clients:
docker build docker -t startree/genai
infra: clients helper
docker compose \
-f ../pinot-compose.yml \
-f ../kafka-compose.yml \
up -d
topics:
-@docker exec kafka kafka-topics.sh \
--bootstrap-server localhost:9092 \
--create \
--topic documentation
tables:
@docker cp config/ pinot-controller:/opt/pinot/
@docker exec pinot-controller ./bin/pinot-admin.sh \
AddTable \
-tableConfigFile config/table.json \
-schemaFile config/schema.json \
-exec
@TABLE=documentation make check_table
recipe: infra check topics tables
loader:
@docker run -it \
--network recipes_default \
--volume $(shell pwd)/config:/code/config \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
startree/genai \
python loader.py ${URL}
question: clients
@docker run -it \
--network recipes_default \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
startree/genai \
python genai.py ${QUERY}
validate: loader
@echo 'passed'