Generative Ai

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Calling all data lovers and AI/ML engineers!

Join Dev Day in San Francisco on June 6th (for free!)

Cloud Gallery Components Generative AI Community Docs Blog Sign in Sign up

Build powerful
generative AI apps
Thousands of developers use Streamlit as their go-to platform to experiment and build generative AI
apps. Create, deploy, and share LLM-powered apps as fast as ChatGPT can compute!

Try example code Deploy on Community Cloud

Your LLM code playground


Play around with a few of Streamlit’s open source examples using LLMs.

Build a chatbot File Q&A with Anthropic Search with Langchain Langchain Quickstart App Langchain - Blog Outline Generator App

1 import streamlit as st
2 from openai import OpenAI
3
4 with st.sidebar:
5 openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type
6 "[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
7 "[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
8 "[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
9
10 st.title(" Chatbot")
11
12 if "messages" not in st.session_state:
13 st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"
14
15 for msg in st.session_state.messages:
16 st.chat_message(msg["role"]).write(msg["content"])
17
18 if prompt := st.chat_input():
19 if not openai_api_key:
20 st.info("Please add your OpenAI API

Unlock your creativity with LLMs

250K 208K 63K 60K

MathGPT LLM examples ChatGPT with Memory Gita GPT


napoles-uach streamlit leo-usa kinshukk

View source → View source → View source → View source →

59K 51K 48K 48K

Llama 2 Chatbot Quickstart App KnowledgeGPT MRKL


dataprofessor dataprofessor mmz-001 langchain-ai

View source → View source → View source → View source →

46K 43K 38K 29K

Seo Chat Bot Weebsugpt Chat with the Streamlit docs, power… LangChain: Chat with search
cefege wvsu-mis carolinedlu langchain-ai

View source → View source → View source → View source →

1 2 3 4 5 6 7

← Previous Next →

Works with everything


in the AI ecosystem

DID YOU KNOW...

LLMs are genius at writing apps


Streamlit is a breeze for humans and AI alike. Just watch ChatGPT write a Streamlit app in a matter of seconds. It's pair
programming like never before.

Write a Streamlit app in seconds using ChatGPT


Copy link 1/1

0:00 / 0:36

Get tips & tutorials from the


community
Read All →

Meet Snowflake Arctic, our new LLM! Grounded multi-doc Q&A made simple Build a real-time RAG chatbot using Using time-based RAG in LLM apps 7 ways GPT-4 with Visi
with AI21 Google Drive and Sharepoint your Streamlit apps

FAQ Section
What is a Large Language Model (LLM)?

Which LLMs work with Streamlit?

How to obtain an OpenAI API key?

How to load LLM API key in a Streamlit app

How do I connect Streamlit to OpenAI?

How do I connect Streamlit to an LLM?

SHARE YOUR LLM APPS WITH THE COMMUNITY!

Become a Streamlit
Advocate
With an unwavering commitment to open source, join us in our mission to
make Streamlit the go-to platform for building LLM apps.

Join the forum

SITE DOCUMENTATION RESOURCES SOCIAL

Home Get started Forum GitHub

App gallery Tutorials Blog YouTube

Component gallery API reference Brand LinkedIn

Creators Cheat sheet Twitter/X

Generative AI Changelog

Community Cloud
Hello there
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
© 2024 Snowflake Inc. Security advisories Cookie policy Privacy
Cookienotice
settings Terms of use
Reject all Contact
Accept all
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy