Incant – add magic spells to your code
a year ago
- #programming
- #safety
- #language-models
- Incant provides primitives for safely integrating language model invocations into code.
- Warning: All input data to Incant primitives is sent to upstream inference providers; avoid personal or sensitive information.
- Example: `createSelector` picks the highest number from an array, ensuring type-safety and no hallucinations.
- Example: `createFilter` filters male names from an array, preserving original order and guaranteeing output is a subset of input.
- Environment variables like `OPENAI_API_KEY` are used for configuration.