Library · concept

LLMs and NLP

Work with text, from classic NLP to large language models. Call LLM APIs reliably, get structured output, and choose between prompting, retrieval and fine-tuning.

LLMs and generative AI appeared in 62% of the AI/ML Engineer and 75% of the Forward Deployed Engineer job descriptions we read. Classic NLP still matters: many text problems are solved faster and cheaper without an LLM.

Examples use the UCI SMS Spam Collection (CC BY 4.0), open embedding models from Hugging Face, and the Anthropic Python SDK.

  1. 1Text as dataText classification with TF-IDF and embeddings3 min read
  2. 2Calling LLMs in production codeCalling an LLM from production code4 min read

LLMs and NLP lessons

Loading lessons…