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.1.5.tar.gz
.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.1.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cceeeda8523b0e92e89e7941770b8d93fc3c4f840fe4c0e593a169bcebc35f0 |
|
MD5 | e84f3870be60b41429fc726d5afad146 |
|
BLAKE2b-256 | 688a033d323cc32bc8141d800ece40f9037380fe2c8324cf90124b919f326184 |
File details
Details for the file llama_index_packs_streamlit_chatbot-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7475aafcbcaecc4ed98b5585927aeb271f6910c0c60a14582f4a0e95f673c17 |
|
MD5 | d7eefa4d6073b9624d60fed1b3de2904 |
|
BLAKE2b-256 | 6bc19c048c911b7523f94bb29143f424351ce9183ebc776d6e7fe3d69a0fefe2 |