Semantic Search (local module)
semantic_search_localSearch Australian legislation and case law with natural-language queries; uses local embeddings to rank results by semantic relevance.
Instructions
Vector recall over installed local data modules: the query is embedded locally (bge-small, offline, no key) and ranked by cosine similarity over chunk embeddings, with optional jurisdiction/type/segment facet pre-filters. Gated on the local embedder being installed and the module being embedded with a matching descriptor; degrades visibly (typed notes) when unavailable. Requires @duckdb/node-api, @huggingface/transformers, and an embedded module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | Natural-language query, embedded locally | |
| filter | No | Facet pre-filters applied before ranking | |
| format | No | json | |
| module | No | Pin a module; otherwise all embedded ready modules whose embedding model_id+dim match the local embedder |