Skip to content
프로젝트

carolinefrasca/llamaindex-chat-with-streamlit-docs

GitHub에서 보기

소개

Build a chatbot powered by LlamaIndex that augments GPT 3.5 with the contents of the Streamlit docs (or your own data).

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

🦙📚 LlamaIndex - Chat with the Streamlit docs

Build a chatbot powered by LlamaIndex that augments GPT 3.5 with the contents of the Streamlit docs (or your own data).

Overview of the App

  • Takes user queries via Streamlit's st.chat_input and displays both user queries and model responses with st.chat_message
  • Uses LlamaIndex to load and index data and create a chat engine that will retrieve context from that data to respond to each user query

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.
  4. Add your API key to your secrets.toml file. If you don't already have a secrets.toml file, add a folder named .streamlit, create a file called secrets.toml within the folder, and add the following to it:

openai_key = <your key here>

Alternatively, you can use Streamlit Community Cloud's secrets management feature to add your API key via the web interface.

[!CAUTION] Don't commit your secrets file to your GitHub repository. The .gitignore file in this repo includes .streamlit/secrets.toml and secrets.toml.

Try out the app

Once the app is loaded, enter your question about the Streamlit library and wait for a response.

관련 프로젝트 살펴보기

불러오는 중…