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.5.2.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.5.2.tar.gz.

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.5.2.tar.gz
Algorithm Hash digest
SHA256 7c8e271381dff04c633be4a33f182910feee12ad1799bf6fba4a2c8131c95cf7
MD5 bce7b2fabb62cb0272e307dea3283a71
BLAKE2b-256 92e88108cfe5c91966fd291cf2baecdcd10ac611763716de8607b08cba9a0ac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71f86eac192ad22e90a0e1a32b1d6c1b35585c72a2809865cf9fb8a98d9f2b71
MD5 796e9ac1390c7f292f18264b926e1306
BLAKE2b-256 2b0f56ca9e75ae325b0e81cfbc3ed9d55fde1155a8ed67e4fd219e6045f37dae

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