Document¶
Document
¶
Natural language interface for documents.
Supports PDF, DOCX, PPTX, XLSX, HTML, JSON, MD, TXT, XML, YAML, RTF formats. Documents are automatically chunked for efficient processing.
PARAMETER | DESCRIPTION |
---|---|
source
|
Path to document file. Mutually exclusive with text.
TYPE:
|
text
|
Document content as text. Mutually exclusive with source.
TYPE:
|
ask
¶
Ask natural language questions and get structured responses.
PARAMETER | DESCRIPTION |
---|---|
prompt
|
Natural language question or instruction.
TYPE:
|
model
|
AI model to use (e.g., 'openai:gpt-4', 'anthropic:claude-3-5-sonnet').
TYPE:
|
context
|
Additional business context for better responses.
TYPE:
|
output_type
|
Pydantic model for structured responses.
TYPE:
|
stream
|
Show live AI reasoning in terminal.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Any
|
Response matching the requested output type. |
tools
¶
Available tool methods for document operations.
RETURNS | DESCRIPTION |
---|---|
list[callable]
|
Methods for document reading with intelligent chunking. |
instructions
¶
Generate system instructions for AI agents.
PARAMETER | DESCRIPTION |
---|---|
context
|
Additional business context to include in instructions.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
System instructions for AI interaction with this datasource. |