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

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f7bee0f18ddb734acc2429ef91c9c0c25c6cf0447a21c3e1aa1408e22ea01422
MD5 78d3058def23a0fc6674e9f5c57cefbf
BLAKE2b-256 5da5753f08ecf98076d6322d0a191efb1d5c06a2970406e33164f89736841ff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1520e1a9969ccda8ebc767e8e7daec742f02c3e4e2614c5b934ba4a7ab46af8c
MD5 f3eaafac524f8f7788b8e465748007ff
BLAKE2b-256 2b96ada57c2ad9d7303d4c3c4c61392e07f1b0e5dd32bffcb9ea28d3411e686d

See more details on using hashes here.

Supported by

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