WhoBuilt

Git push get an AI API

Aug 23, 2024· 45 min· 1.6K views·Watch on YouTube

Speaker

Ryan Fox-Tyler of Hypermode leads an AI Engineer workshop on building and iterating on AI features, including a live GitHub issue triage example.

A game illustrates AI building blocks

Fox-Tyler introduces Hyper Categories, a group version of Categories where AI checks whether answers fit a category and starting letter. The system also clusters similar answers, such as “table” and “tables,” so players share points. He notes that model evaluations can fail and that dictionary checks help catch invalid answers.

Build a repository trend summary

The workshop turns to triaging GitHub issues by classifying issue types, finding similar reports, and summarizing repository trends. In the trend summary function, a GitHub REST call fetches issues and GPT-4 analyzes their timestamps, authors, and titles. Fox-Tyler describes Hypermode’s typed model interface, generated GraphQL endpoint, deployment flow, and inference history for inspecting inputs, outputs, latency, and token use.

Classify issues with a hosted model

The classification function combines an issue’s title and description, then uses a Hugging Face model trained for GitHub issues to label it as a bug, feature request, or question. The model is provisioned in Hypermode for the project. Fox-Tyler suggests using its confidence score in code to set a threshold.

Add semantic search with embeddings

Fox-Tyler adds a collection and a Sentence Transformers MiniLM model, then builds an embedding function and a search function for the top three similar issues. Pushing commits deploys the changes, while adding records to the collection triggers embedding automatically. A README translation request finds related language issues, including Turkish and French, but no Spanish match.

Takeaways

  • Combine model judgments with ordinary code checks when validation errors matter.
  • Treat model inputs, prompts, and outputs as things to iterate on, since models are not fully interchangeable.
  • Use inference histories and function logs to inspect model behavior, latency, outputs, and token use.
  • For semantic search, embed stored records and queries with the same model.
  • A confidence score can support application-level thresholds without retraining a classifier.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks