nlweb-ask-endpoint
Installation
SKILL.md
NLWeb /ask Endpoint
Before writing code
Fetch live spec:
- Fetch https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-rest-api.md for the canonical
/askcontract — request params, response shape, and streaming format. - Fetch https://github.com/nlweb-ai/NLWeb/blob/main/docs/life-of-a-chat-query.md to trace a request end-to-end.
- Fetch https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-headers.md for the in-stream "headers" mechanism (license, data-retention, rate-limit messages are NOT HTTP headers).
- Web-search the latest release notes for the v0.55+ structured POST body shape (
query.text,prefer.mode,prefer.streaming,meta.version) — this is newer than the GET-only legacy contract. - Check
webserver/routes/api.pyin the live repo to confirm exact param names.