WhoBuilt

AI Engineering 101

Nov 6, 2023· 3 h 2 min· 6.1K views·Watch on YouTube

Speaker

Noah Hine, an AI engineer whose company is not stated, leads an AI Engineer Summit workshop on building LLM applications, with a host introducing the session and workshop assistants helping attendees.

A practical starting point for AI engineering

The host frames the workshop as a welcoming baseline for people learning to build with AI, focused on techniques that are already known to work. Noah Hine outlines a hands-on path through LLM APIs, tokens and embeddings, code generation, image generation, and speech-to-text.

Build a Telegram chatbot with an LLM

Attendees connect a Telegram bot to OpenAI’s GPT-3.5 Turbo API, using a messages array to keep the conversation history and return answers to users. Hine explains that the bot’s memory resets when its server restarts, and that long conversations can exceed the model’s context limit.

Prepare data and retrieve relevant context

Hine explains tokens, embeddings, and chunking, then walks through preparing scraped MDN documentation for semantic search. The workshop creates embeddings, compares a user question with document chunks using cosine distance, and sends relevant context to the model so it can answer or say it does not know.

Generate code and images with prompts

For code generation, attendees use a few-shot prompt with HTML and JSX examples, then ask GPT-4 to produce similarly styled code. The image-generation exercise connects DALL·E 2 to Telegram and has groups experiment with prompts; Hine notes that image results depend heavily on specific descriptions.

Transcribe voice messages

The final exercise uses Telegram voice messages and OpenAI’s Whisper API to return a transcription. Hine also recommends trying Whisper locally, including whisper.cpp, and emphasizes giving users feedback while longer AI requests are processing.

Takeaways

  • Keep conversation history in the prompt when follow-up questions need context, and plan for context limits and resets.
  • For long documents, clean and chunk the text before embedding; retrieve relevant chunks instead of sending the entire corpus to the model.
  • Test chunk size and overlap against the material and task, since documentation, structured data, and novels need different approaches.
  • Use a few-shot prompt to guide generated code toward the conventions of your project, then review the output.
  • For slow AI requests, show that work is underway; streaming or another progress signal improves the user experience.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks