instructor_ex
2024-03-12
instructor_ex is an Elixir library designed for structured, Ecto-based outputs with OpenAI and other open-source large language models (LLMs), facilitating JSON mapping to Ecto schemas for more structured responses than traditional unstructured text outputs. It highlights ease of use, adaptability to various models, and potential for automated prompt retrying upon validation failure. This library adds a missing layer that makes working with LLMs much more controllable, robust, and reliable. Here is a really good video that explains Instructor in practice: Thomas Millar, Instructor - The bridge between Elixir and AI{:target="_blank"}.
Was this useful?