9opsec / langchain-quickstart

Build your first LLM powered app with Langchain and Streamlit.

Home Page:https://langchain-quickstart.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿฆœ๐Ÿ”— Langchain - Quickstart App

Build your first LLM powered app with Langchain and Streamlit.

Overview of the App

  • Accepts input text (e.g. What are the three key pieces of advice for learning how to code?) as prompt input using Streamlit's st.text_area(), then assign this to the text variable.
  • LLM model is called via llm() and it is applied on the prompt input text to generate a response via llm(text)

Demo App

Streamlit App

Get an OpenAI API key

You can get your own OpenAI API key by following the following instructions:

  1. Go to https://platform.openai.com/account/api-keys.
  2. Click on the + Create new secret key button.
  3. Next, enter an identifier name (optional) and click on the Create secret key button.

Try out the app

Once the app is loaded, go ahead and enter your OpenAI API key and type a question in the text box and wait for a generated response.

About

Build your first LLM powered app with Langchain and Streamlit.

https://langchain-quickstart.streamlit.app/


Languages

Language:Python 100.0%