View Source API Reference Instructor v0.1.0

Modules

Check out our Quickstart Guide to get up and running with Instructor in minutes.

Anthropic adapter for Instructor.

Adapter for Google Gemini.

Adapter for Groq Cloud API. Using the OpenAI API compatible endpoint.

Runs against the llama.cpp server. To be clear this calls the llamacpp specific endpoints, not the open-ai compliant ones.

Ollama adapter for Instructor.

VLLM adapter for Instructor.

Adapter for XAI API to access the Grok models.

Instructor.EctoType is a behaviour that lets your implement your own custom Ecto.Type that works natively with Instructor.

By default you'll get whatever OpenAI returns. This behavior provides a hook for you to critique the response using standard ecto changesets validations. This can be used in conjuction with the :max_retries parameter to Instructor.chat_completion/1 to retry the completion until it passes your validation.