# process-hybrid-search > Supabase edge function supabase/functions/process_hybrid_search that converts process descriptions into hybrid search queries and calls `hybrid_search_processes`. Use when debugging process search, tuning prompts/filters, or adjusting embedding endpoints/auth. - Author: Nan LI - Repository: tiangong-lca/skills - Version: 20260203164930 - Stars: 3 - Forks: 2 - Last Updated: 2026-02-06 - Source: https://github.com/tiangong-lca/skills - Web: https://mule.run/skillshub/@@tiangong-lca/skills~process-hybrid-search:20260203164930 --- --- name: process-hybrid-search description: Supabase edge function supabase/functions/process_hybrid_search that converts process descriptions into hybrid search queries and calls `hybrid_search_processes`. Use when debugging process search, tuning prompts/filters, or adjusting embedding endpoints/auth. --- # Process Hybrid Search ## Required parameters - `data`: JSON payload containing the `query` string the user wants to search (optional `filter`). - `TIANGONG_LCA_APIKEY`: user key derived from email + password; send as `Authorization: Bearer `. ## Quick start - Endpoint: `https://qgzvkongdjqiiamzbbts.supabase.co/functions/v1/` - Header: `x-region: us-east-1` - Requires `Authorization: Bearer `. - Body: JSON with `query` string (optional `filter`); `assets/example-request.json` shows the format. - Example call: ```bash curl -sS --location --request POST "https://qgzvkongdjqiiamzbbts.supabase.co/functions/v1/process_hybrid_search" \ --header 'Content-Type: application/json' \ --header 'x-region: us-east-1' \ --header "Authorization: Bearer $TIANGONG_LCA_APIKEY" \ --data '{"query": "waste polyethylene mechanical recycling"}' ``` ## Request & output - POST `{ "query": string, "filter"?: object|string }`. - Responses: 200 with `{ data }` or `[]`; 400 if `query` missing; 500 on embedding/RPC errors. ## References - `references/env.md` - `references/request-response.md` - `references/prompts.md` - prompt requirements for query generation. - `references/testing.md` ## Assets - `assets/example-request.json`