Prompting | Hokstad Consulting

Prompting

Blog posts in the Prompting category

Pydantic Validates AI Tool Arguments Before Execution

Validate AI-generated tool arguments with Pydantic v2 using strict types, safe correction feedback and two retry attempts before execution.

Read more

Self-Questioning Prompts for RAG: Checking Evidence

15 self-questioning prompts to verify RAG sources: map claims to passages, check conflicts and decide to answer, qualify, retrieve or abstain.

Read more

Grounded Generation Prompts: Handling Evidence Gaps

Four-step method to craft evidence-only prompts: cite sources, expose gaps, ask one clarifying question or abstain when unsupported.

Read more

Tool Schema Design: 7 Function Calling Practices

Seven rules for designing tool schemas and function calls: clear names, precise types, enums, nested objects and strict runtime validation.

Read more

Speech and Pointing vs Text for Agent Object Selection

Compare speech+pointing and text for object selection; use identify–confirm–act tests to measure accuracy, time, accessibility and recovery.

Read more

US Copyright Office: AI Authorship Report Explained

Explains when human input makes AI outputs copyrightable, and what records and disclosures to keep for registration.

Read more

Databricks Prompt Registry: Guide for LLM Teams

Version, test and release prompts safely: setup, aliases, application loading, approvals and rollback best practices.

Read more

Chain-of-Verification Prompts: 4 Steps for LLM Checks

Four-step CoVe method: draft claims, create neutral checks, run isolated evidence-based checks and revise with uncertainty noted.

Read more

Self-Consistency Prompts: How Majority Voting Works

Use self-consistency: sample varied LLM answers, normalise final responses, count votes and independently verify the leading answer.

Read more