Back to Templates

Hello AI Chatbot

View App View Code on GitHub
shiny create --template basic-chat --mode express --github posit-dev/py-shiny-templates/gen-ai
shiny create --template basic-chat --mode core --github posit-dev/py-shiny-templates/gen-ai

A basic chatbot powered by an Large Language Model (LLM) from Anthropic. To learn more, see the article on Gen AI chatbots.

Other model providers

This particular template uses chatlas.ChatAnthropic() to do response generation via Anthropic. With chatlas, it’s easy to switch to other providers. Just change ChatAnthropic() with another provider (e.g., ChatOpenAI()).

Components:

Layouts:

Packages:

chatlas