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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6136f447726df0bc80d04f3449227cac2dc63c11d93c0a4994c55e500494efb4
MD5 2bdadba5b6bda0003fd7202e3677d763
BLAKE2b-256 6047f1a2942599f231fa3b64b0513ec3bc69d0e5c8503537ee3fba8ed32addc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92fcc2826a58ed202fefdb55287d85a8bdef510798b94953f2adfa33e4970629
MD5 a9a139c8fb5f97c5084d8f91f76fbc54
BLAKE2b-256 9044598d57bdb7b2cc4675ab9048926e43ff4fb1cf452d04560add8e77b24734

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