Instructor
▼
Project version
v0.1.0
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Pages
Modules
API Reference
Modules
Quickstart
Introduction
Validations
Record Streaming
Partial Streaming
Custom Ecto Types
Philosophy & Motivations
A New Modality
LLMs aren't only for chatbots
cast_all\2, It's just Ecto baby
Used Anywhere where Ecto is used
Where to go from here?
LLM Providers
Local Instructor w/ llama.cpp
Setting up llama.cpp
Local Instructor w/ Ollama
Introduction
Local Instructor w/ vLLM
Introduction
Gemini
Introduction
Anthropic
Introduction
Groq
Introduction
Azure OpenAI
API Key Authentication
Microsoft Entra ID authentication
Cookbook
Text Classification
Motivation
Binary Text Classification
Question & Answer with Citations
Motivation
Basic Substring Validation
Using the LLM for Validation
Extracting Action Items from Meeting Transcripts
Motivation
The Schema
Converting Text into Explorer DataFrames
Motivation
The Schema
GPT-4o-vision - Extracting Data from Images
Motivation
Extracting data from images of Receipts
Our Object Model
Validating the Subtotal
Calling the LLM
PII Data Sanitization
Section
Instructor
Summary
Types
stream/0
Functions
cast_all/2
chat_completion/2
Instructor.Adapter
Summary
Types
config/0
params/0
raw_response/0
stream/0
Callbacks
chat_completion/2
reask_messages/3
Instructor.Adapters.Anthropic
Sections
Configuration
Instructor.Adapters.Gemini
Sections
Configuration
Summary
Functions
chat_completion/2
Instructor.Adapters.Groq
Sections
Configuration
Instructor.Adapters.Llamacpp
Sections
Configuration
Summary
Functions
chat_completion/2
Instructor.Adapters.Ollama
Sections
Configuration
Instructor.Adapters.OpenAI
Instructor.Adapters.VLLM
Sections
Configuration
Instructor.Adapters.XAI
Sections
Configuration
Instructor.EctoType
Sections
Example
Summary
Callbacks
to_json_schema/0
Instructor.Extras.ChainOfThought
Summary
Functions
chat_completion/2
Instructor.Extras.ChainOfThought.ReasoningStep
Summary
Functions
%Instructor.Extras.ChainOfThought.ReasoningStep{}
Instructor.JSONSchema
Summary
Functions
from_ecto_schema/1
traverse_and_update/3
Instructor.JSONStreamParser
Summary
Functions
parse/1
Instructor.Validator
Sections
Examples
Summary
Callbacks
validate_changeset/1
validate_changeset/2
Functions
validate_with_llm/4
Search documentation of Instructor
Settings
View Source
Instructor.JSONStreamParser
(Instructor v0.1.0)
Summary
Functions
parse(chunks)
Functions
Link to this function
parse(chunks)
View Source
×