lifecyclemodel-hybrid-search
Lifecycle Model 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-lifecyclemodel-hybrid-search.mjswith standardtiangong search lifecyclemodelflags. - The wrapper delegates to
tiangong search lifecyclemodel. - 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-lifecyclemodel-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-lifecyclemodel-hybrid-search.mjs
node scripts/run-lifecyclemodel-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-lifecyclemodel-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_lifecyclemodelsRPC 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.
More from tiangong-lca/skills
process-hybrid-search
Execute and troubleshoot Supabase edge function `process_hybrid_search`, which rewrites process descriptions and calls `hybrid_search_processes` with optional filters. Use when validating process query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
15flow-hybrid-search
Execute and troubleshoot Supabase edge function `flow_hybrid_search`, which rewrites flow descriptions and calls `hybrid_search_flows` with optional filters. Use when validating flow query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
14embedding-ft
Execute and troubleshoot Supabase edge function `embedding_ft` that consumes PGMQ embedding jobs, calls AWS SageMaker embeddings, and writes vectors back to Postgres. Use when validating job payload handling, investigating failed embeddings, tuning ack semantics, or adjusting worker auth/environment.
13process-automated-builder
Execute the supported `process_from_flow` CLI workflow. Use `node scripts/run-process-automated-builder.mjs auto-build|resume-build|publish-build|batch-build` when you need the unified `tiangong process ...` surface from a skill wrapper.
13lifecycleinventory-review
Review process-level or lifecyclemodel-level lifecycle inventory outputs from local TianGong build runs, plus frozen remote TianGong process snapshots. Use when auditing process_from_flow batches, remote process rows fetched through the canonical snapshot wrapper, or lifecyclemodel build artifacts through the unified CLI with reproducible review inputs and outputs.
10flow-governance-review
Run the CLI-backed flow governance commands for review, remediation, deterministic process-flow repair, and publish preparation. Use `node scripts/run-flow-governance-review.mjs COMMAND ...` when you need the supported `tiangong review flow` and `tiangong flow ...` workflows from a skill wrapper.
9