Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Build a Document Q&A Pipeline in Go

Video #11 — Claude API in Go Series
Publish date: 2026-08-10
Type: Heavy (Capstone)
Est. duration: ~38 min

What we cover

  • Ingesting text documents and images into a Claude context
  • Asking natural language questions and getting structured JSON answers
  • Building a QAResult type with source citations
  • Mixing text and image content blocks in a single message
  • Patterns for extending to real PDFs, databases, and RAG pipelines

Prerequisites

  • Go 1.23+
  • An Anthropic API key
  • Episodes 04 (structured output) and 07 (vision) are the core background

Running the example

cd 11-document-qa
export ANTHROPIC_API_KEY=your_key_here
go run main.go

Project structure

.
├── README.md
├── go.mod
├── go.sum
└── main.go