summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-13 18:07:45 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-13 18:07:45 +0100
commit2a6fd554998c64733e2d97aecf653f6e48e0f8b4 (patch)
treef53c2f0b4dc42825f426ada0ebb591dbb80c89e9 /Makefile
parenta1a595a3305727d30e16e856f4faf95980643e1c (diff)
downloadllmnpc-2a6fd554998c64733e2d97aecf653f6e48e0f8b4.tar.gz
Store context documents to Vector Database
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 94f009d..537ea3b 100644
--- a/Makefile
+++ b/Makefile
@@ -12,24 +12,27 @@ LDFLAGS = -L$(LLAMA_DIR)/build/src -L$(LLAMA_DIR)/build/ggml/src \
help: .help
-prompt: prompt.c vectordb.c models.h # Build prompt binary for testing
+build/prompt: prompt.c vectordb.c models.h # Build prompt binary for testing
$(CC) $(CFLAGS) prompt.c vectordb.c -o prompt $(LDFLAGS)
-llamacpp: .assure # Build llama.cpp libraries
+build/context: context.c vectordb.c models.h # Build context binary for testing
+ $(CC) $(CFLAGS) context.c vectordb.c -o context $(LDFLAGS)
+
+build/llama.cpp: .assure # Build llama.cpp libraries
mkdir $(LLAMA_DIR)/build && \
cd $(LLAMA_DIR)/build && \
cmake ../ -DBUILD_SHARED_LIBS=OFF && \
make -j8
-fetchmodels: .assure # Fetch GGUF models
+run/fetch-models: .assure # Fetch GGUF models
-mkdir -p models
cd models && wget -nc -i ../models.txt
-docker: .assure # Runs prompt in Docker container
+run/docker: .assure # Runs prompt in Docker container
docker build -t promptd .
docker run -it promptd
-clean: # Cleans up all the build artefacts
+run/clean: # Cleans up all the build artefacts
-rm -f prompt
cd $(LLAMA_DIR)/build && make clean
-rm -Rf $(LLAMA_DIR)/build