diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 19:25:47 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 19:25:47 +0100 |
| commit | d8c826ac5738dc349734ab21d3f18abb1bac7c3a (patch) | |
| tree | 92461f0a0ce855d38e00a402955576f93086bfbb /Makefile | |
| parent | 148bd1115e328defead3205878039e8cc598712e (diff) | |
| download | llmnpc-d8c826ac5738dc349734ab21d3f18abb1bac7c3a.tar.gz | |
Sample NPC corpus data and map definition
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 $@ |
