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.
client::SearxngClient— HTTP client wrappingreqwest::Client.params::map_to_searxng_params— translate a publicSearchRequestinto SearXNG query parameters.transform::transform_flat/transform::transform_grouped— turn aclient::SearxngResponseinto the user-facing result shape.
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
SearchRequestinto 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
SearxngResponseinto the public flat / grouped result shapes. Direct port ofcrw-saas/src/lib/search-transform.ts. - wikidata
- Deterministic Wikidata entity-relation lookup (W3, no AI).