YPOG AI Workshop: Legal, Fund & Finance

17.06.2026
YPOG AI workshop, 17 June 2026

On 17 June 2026 I ran a hands-on AI workshop for legal and finance practitioners at YPOG. The theme: build a local, citation-grounded AI assistant over fund documents, where no data leaves the laptop. Thanks to YPOG for hosting the workshop and bringing a curious, well-prepared group into the room.

What we covered

  • What AI models are: inference as one pass per token, training as billions of next-token guesses with weight corrections. Different model types (chat, embedding, vision, reasoning) and what they are good for.
  • Why local AI: professional secrecy, GDPR and client mandates on the legal side. Cost, version control and offline use on the practical side. We looked at three cases where cloud AI went wrong: a frontier model pulled globally overnight, an exposed chat-log database, and shared chats indexed by Google. Local AI is the simplest defensible answer to “where is my data processed?”.
  • Prompt patterns: zero-shot vs. few-shot, chain-of-thought, and why prompt skill matters more with a small local model than with a frontier one.
  • RAG (Retrieval Augmented Generation): chunking, embeddings, similarity search, retrieval, and injecting the matched chunks into the prompt so answers stay grounded in the source text with citations.

Hands-on

Every participant set up a complete local RAG stack on their own laptop, from a USB kit:

  • LM Studio runs the models and serves them at localhost:1234
  • AnythingLLM embeds the PDFs, retrieves matching chunks and handles the chat
  • Qwen3 (1.7B / 4B / 14B, Q4_K_M) as chat model, picked by available RAM, and bge-m3 for embeddings

The corpus was a fictional fund, Team Rocket Opportunities Fund I LP, with 16 synthetic documents: LPA, side letters, KYC packs, quarterly reports, audit findings, compliance and operations manuals, IC minutes. Participants embedded the documents, set a system prompt, and then asked questions such as who the LPs are, when the next capital call is due, or which investor has a sanctions match. The point was to see which questions pass, which fail, and why. The corpus is fictional and not published.

Material

Further reading