Process Hybrid Search
Run Workflow
- By default the wrapper runs the published CLI through
npm exec --yes --package=@tiangong-lca/cli@latest -- tiangong. UseTIANGONG_LCA_CLI_DIRor--cli-dironly for local dev/CI overrides. - Set
TIANGONG_LCA_API_BASE_URLandTIANGONG_LCA_API_KEY, or pass--base-urland--api-key. - Execute
node scripts/run-process-hybrid-search.mjswith standardtiangong search processflags. - The wrapper delegates to
tiangong search process. - Confirm response shape, then debug with focused references.
Commands
TIANGONG_LCA_API_BASE_URL="https://example.supabase.co/functions/v1" \
TIANGONG_LCA_API_KEY="<your-api-key>" \
node scripts/run-process-hybrid-search.mjs --dry-run
TIANGONG_LCA_API_BASE_URL="https://example.supabase.co/functions/v1" \
TIANGONG_LCA_API_KEY="<your-api-key>" \
node scripts/run-process-hybrid-search.mjs
node scripts/run-process-hybrid-search.mjs \
--input ./assets/example-request.json \
--base-url "https://example.supabase.co/functions/v1" \
--api-key "$TIANGONG_LCA_API_KEY"
# Force a local CLI working tree during dev/CI
TIANGONG_LCA_CLI_DIR=/path/to/tiangong-lca-cli \
node scripts/run-process-hybrid-search.mjs \
--dry-run \
--base-url "https://example.supabase.co/functions/v1" \
--api-key "$TIANGONG_LCA_API_KEY"Fast Triage
400: missing or invalidquery.500: embedding provider orhybrid_search_processesRPC failure.- Empty
data: query/filter mismatch; inspect generated retrieval query and filter structure.
Load References On Demand
references/env.md: auth, region, and endpoint overrides.references/request-response.md: payload contract and RPC expectations.references/prompts.md: query-rewrite prompt constraints.references/testing.md: smoke test checklist.