Skip to content

zahad-a-s/llamaindex-chat-with-quran-streamlit

This branch is 6 commits ahead of carolinefrasca/llamaindex-chat-with-streamlit-docs:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8419879 Β· Aug 2, 2024

History

66 Commits
Aug 2, 2024
Aug 2, 2024
Jul 2, 2024
Aug 2, 2024
Mar 6, 2024
Aug 2, 2024

Repository files navigation

πŸ¦™πŸ“š LlamaIndex - Chat with the Streamlit docs

A modified Streamlit chatbot to chat with a Quran dataset.

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.

About

Chat with Quran dataset in Streamlit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%