liveBook · Manning

Claude

As explained in Data Analysis with LLMs

Claude 3.5 is a version of Anthropic's Claude family of large language models.

Claude is Anthropic’s family of large language models. Claude 3.5 provides an alternative to OpenAI models and can be used through a web interface or a Python library. section 8.0 section 8.1

Anthropic distinguishes its training approach through Constitutional AI: a set of rules guides a second AI in evaluating generated answers for accuracy and harmlessness. section 8.1

Use Claude in two practical ways:

  • Chat through Anthropic’s website after creating and verifying an account. section 8.1.1
  • Call Claude from Python by installing the Anthropic library, creating an access key, and passing a question to the anthropic.messages endpoint. section 8.1.2
  • Configure the model identifier, maximum completion tokens, and a list of chat messages, then read the returned content. section 8.1.2

A first Claude task

Open Claude’s chat interface and ask it to classify reviews by sentiment or translate a natural-language question into a SQL query. The same kind of question can be supplied through the Python interface. section 8.1.1 section 8.1.2

Figure 8.1 Web interface for Anthropic’s chatbot Claude
figure

View the web interface used to start a conversation with Claude. section 8.1.1

How Data Analysis with LLMs covers it

How deep it goes
Introduces Claude’s provider, training distinction, web access, and Python call structure without exploring model internals.
Examples
Uses web chat, sentiment classification, SQL translation, and a Python script that answers questions.
What it assumes
Assumes basic familiarity with language-model tasks and Python libraries while teaching account creation, access keys, and Claude requests.
What you can do after
Operate Claude through Anthropic’s web interface or Python library using an access key, model name, messages, and token limit.
How it connects
Connects Claude with large language models, Constitutional AI, transformer architecture, OpenAI models, chat interfaces, and Python libraries.

Also explained in

Compare how 3 books explain Claude →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Analysis with LLMs. The section links point to the parts of the book it draws on.