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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.2.1.tar.gz
Algorithm Hash digest
SHA256 27aff6b3702bf23eccff5d96a7f77223fca73e10421be95162f01541659e9e71
MD5 74631b0d218f7201145950e3f2dae5e1
BLAKE2b-256 82bbf531e69681cf7f236ff2f9bf3f8ae616acd8d3556a124e6cd512e5329ccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_streamlit_chatbot-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70b783de2de99b8786b6aeaef551d8e98d208a0d9396aa50fdf2f6df6438f154
MD5 c151b62ec7dc0f8a823551cc6b0ff8a0
BLAKE2b-256 5eb3d32c951edd2980e51c8829ac6557e869f1f606d89e426a42b8f4ee048917

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