diff --git a/Makefile b/Makefile index d33f305..4b37398 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,21 @@ ingest-old-attached: bootstrap fetch-old ## sharded ingest of old history (Phase stats-shards: bootstrap ## cross-shard stats via UNION views over $(SHARDS_DIR) $(ABORIST) --shards-dir $(SHARDS_DIR) stats +# Multi-source RAG query against the shard cluster. +# Usage: make query Q="What is anarcho-capitalism?" +QUERY_TOP_K ?= 8 +query: bootstrap ## ask the corpus a question; sources are picked across shards + @if [ -z "$$Q" ] && [ -z "$(Q)" ]; then \ + echo "usage: make query Q=\"your question\""; exit 2; \ + fi + $(ABORIST) --shards-dir $(SHARDS_DIR) query --top-k $(QUERY_TOP_K) "$(Q)" + +query-dry: bootstrap ## like 'make query' but skip the LLM call (dry-run) + @if [ -z "$$Q" ] && [ -z "$(Q)" ]; then \ + echo "usage: make query-dry Q=\"your question\""; exit 2; \ + fi + $(ABORIST) --shards-dir $(SHARDS_DIR) query --top-k $(QUERY_TOP_K) --dry-run "$(Q)" + verify-shards: bootstrap ## cross-shard Merkle round-trip on a random sample $(ABORIST) --shards-dir $(SHARDS_DIR) verify -n $(VERIFY_N)