Skip to main content

Crate crw_search

Crate crw_search 

Source
Expand description

SearXNG-backed search client and result transforms.

Public surface mirrors crw-saas/src/lib/{searxng-client,search-params,search-transform}.ts so the SaaS layer can be reduced to a thin proxy over /v1/search.

Re-exports§

pub use client::SearchError;
pub use client::SearxngClient;
pub use client::SearxngResponse;
pub use client::SearxngResult;
pub use params::SearxngParams;
pub use params::clean_query;
pub use params::map_to_searxng_params;
pub use rerank::rerank;
pub use rerank::rerank_relevance;
pub use structured::StructuredFact;
pub use structured::structured_facts;
pub use transform::transform_flat;
pub use transform::transform_flat_reranked;
pub use transform::transform_grouped;

Modules§

client
HTTP client for SearXNG’s JSON search API.
params
Translate a public SearchRequest into SearXNG query parameters.
rerank
Re-ranking pipeline for the LLM “answer” / “summarize” search path.
structured
Structured facts from SearXNG’s infoboxes[] / answers[] arrays.
transform
Transform a SearxngResponse into the public flat / grouped result shapes. Direct port of crw-saas/src/lib/search-transform.ts.
wikidata
Deterministic Wikidata entity-relation lookup (W3, no AI).