Skip to main content

Usage

moorcheh answer --query "What is Moorcheh?" --namespace my-documents
Direct LLM (no RAG):
moorcheh answer --query "Explain ITS scoring" --namespace ""

Options

FlagDescription
--base-urlAPI base URL (default http://localhost:8080)
--queryRequired. User question
--namespaceText namespace for RAG; default "" (direct LLM)
--top-kNumber of chunks to retrieve
--temperatureLLM temperature (0.02.0)
--ai-modelOverride configured LLM model
--header-promptSystem instruction
--footer-promptTrailing instruction
--thresholdRelevance threshold (with --kiosk-mode)
--kiosk-modeFilter chunks below threshold
--chat-history-jsonJSON array of prior turns
--structuredEnable default structured JSON schema

Examples

# RAG over a text namespace
moorcheh answer \
  --namespace product-docs \
  --query "How do I reset my password?" \
  --top-k 5

# Direct OpenAI/Cohere/Ollama call
moorcheh answer \
  --namespace "" \
  --query "Write a haiku about vector search" \
  --temperature 0.9

# Structured output
moorcheh answer \
  --namespace docs \
  --query "List key features" \
  --structured

Prerequisites

  • Moorcheh server running (moorcheh up)
  • LLM configured in ~/.moorcheh/config.json (run moorcheh configure)
  • For Search Mode: text namespace with uploaded documents