falaw.corpus#
Extract model records from misc/docs/llms-full.txt.
The fal.ai llms-full.txt has a regular structure:
## <Section heading> <paragraph>
### <Model name>
Model:
fal-ai/<id>Purpose: <one-liner>
Features: <details>
We map the section to a category, infer a quality tier from the model
name, and emit ModelRecord-shaped dicts the registry can consume. The
refresh_models_from_corpus tool merges these into data/models.json,
adding new models without overwriting hand-curated entries.
Functions
Yield ModelRecord-shaped dicts parsed from llms-full.txt. |
|
|
Merge corpus-discovered models into models.json (additive). |