Skip to main content

llama-index packs streamlit_chatbot integration

Project description

Steamlit Chatbot Pack

Build a chatbot powered by LlamaIndex that augments an LLM with the contents of Snowflake's Wikipedia page (or your own data).

  • 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
  • UI will stream each answer from the LLM

CLI Usage

You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index python package:

pip install llama-index
llamaindex-cli download-llamapack StreamlitChatPack --download-dir ./streamlit_chatbot_pack

You can then inspect the files at ./streamlit_chatbot_pack and use them as a template for your own project!

To run the app directly, use in your terminal:

export OPENAI_API_KEY="sk-..."
streamlit run ./streamlit_chatbot_pack/base.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_packs_streamlit_chatbot-0.4.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_packs_streamlit_chatbot-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.4.1.tar.gz
Algorithm Hash digest
SHA256 eaa66dc719bc6429dcc47171e73daaeecb8e7b23c1082c360f3dff3e8b5bf806
MD5 7c584c57c410e048bd5c0b0a73c77a1e
BLAKE2b-256 9c3237702d6c2efaa85817ac32eab02ba64f576361393fbfd25d3ebc0945b7a4

See more details on using hashes here.

File details

Details for the file llama_index_packs_streamlit_chatbot-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb6b4637d6578ad0f3dd012c2c254a5ad6a1e569e35282547f141419b59ad07f
MD5 16ad15ee3cfe64b95118eff74e0007a9
BLAKE2b-256 950051ae56a72f414de92addfb32997545801678ff0c2051ffe74210ab086265

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page