07_document_analysis

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Document analysis example - analyzing PDF, text files, or other documents.

This example shows how to send document content to the model for analysis. For text-based documents (PDF, TXT, MD, code files), we extract the text and send it as a text message.

To run:

export OPENAI_API_KEY="your-key-here"
go run examples/07_document_analysis/main.go path/to/document.txt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL