summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 19:25:47 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 19:25:47 +0100
commitd8c826ac5738dc349734ab21d3f18abb1bac7c3a (patch)
tree92461f0a0ce855d38e00a402955576f93086bfbb /Makefile
parent148bd1115e328defead3205878039e8cc598712e (diff)
downloadllmnpc-d8c826ac5738dc349734ab21d3f18abb1bac7c3a.tar.gz
Sample NPC corpus data and map definition
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 696534f..0bce7c3 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,9 @@ PROMPT_HEADERS := $(PROMPT_TXT:.txt=.h)
MAP_TXT := $(wildcard maps/*.txt)
MAP_HEADERS := $(MAP_TXT:.txt=.h)
+CORPUS_TXT := $(wildcard corpus/*.txt)
+CORPUS_VDB := $(CORPUS_TXT:.txt=.vdb)
+
help: .help
build/llama.cpp: .assure # Build llama.cpp libraries
@@ -37,6 +40,8 @@ build/prompts: $(PROMPT_HEADERS) # Generate prompts in C style header
build/maps: $(MAP_HEADERS) # Generate maps in C style header
+build/corpus: $(CORPUS_VDB) # Build vector DBs for all corpuses
+
run/fetch-models: .assure # Fetch GGUF models
-mkdir -p models
cd models && wget -nc -i ../models.txt
@@ -55,3 +60,6 @@ prompts/%.h: prompts/%.txt .assure
maps/%.h: maps/%.txt .assure
xxd -i $< > $@
+
+corpus/%.vdb: corpus/%.txt build/context
+ ./context -i $< -o $@