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 withst.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
Release history Release notifications | RSS feed
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.4.0.tar.gz
.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.4.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe4ac7a136c3fe812d1d03abb2df0ab93649d54a145672357096e0ffc4a7fa4b |
|
MD5 | 29d3fcf791fb0b3baa7a8e67b33af8d7 |
|
BLAKE2b-256 | 631462f7a3a8ecc9b7316348a1d7250de59a66a30a0df17718f95414d54288a7 |
File details
Details for the file llama_index_packs_streamlit_chatbot-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c37b349747fb77a1ca168b1e2b2110ecfdbcec9b5158300243d9d164509aaa |
|
MD5 | 66276848c51a54919d15431715676109 |
|
BLAKE2b-256 | ea7081f663d2e36abe3c630279982668180a6b33cc1066f709d3d42dfec32c3d |