chunks
Fetch the served project as JSON Lines records for embedding-based retrieval, optionally narrowed to one module or the language's own documents and library.
Instructions
The served project as chunks for retrieval by embedding, as renyi index --chunks writes them: JSON Lines, a first line with the project, the revision, the toolchain and the counts, then one object per module and per definition with id (the SHA-256 of its text, which changes exactly when the text does), text (a header from the record, then the canonical source) and metadata (the map's id and text hash, module, package, kind, effects, edges, location). The host embeds; the toolchain only writes. module narrows it to one module; language gives the language's own documents instead (the cheat sheet's and the reference's sections, the library's modules and public declarations, the same shape), for a host that embeds the language beside the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | a module name, to give only that module's chunks (with `language`: a library module such as `std.http`, or `cheatsheet` or `reference`) | |
| language | No | true for the language's documents and library instead of the served project |