Models - model
This allows you specify the model you want to use to perform an extraction. You can choose from the following models:
| Provider | Models | Variable |
|---|---|---|
| OpenAI | gpt-4o-minigpt-4o | OPENAI_API_KEY |
gemini-2.0-flash-001gemini-2.0-flash-lite-preview-02-05 | GEMINI_API_KEY | |
| Ollama | llavallama3.2-vision | BASE_URL |
gpt-4o-mini.
Templates - template
To use a template, simply pass the name of the template in the extract function:
Autoschema - autoschema
The autoschema function allows Documind to automatically generate a schema for you based on the content of yoru document.
You can use autoSchema in two ways.
- Simply set the
autoSchemaproperty totrueto create a generic schema that covers your entire document.
- Or you can give instructions in plain English detailing what you want to extract.
You can only select one of
template, schema, or autoSchema.