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
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
Close
Hashes for llama_index_packs_streamlit_chatbot-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f97ff5b8133f2c43831d4af9a2fc3fa6f88058edfe45209a3f1765deab3caf |
|
MD5 | 42b0659345805658ef0543a3ae84f802 |
|
BLAKE2b-256 | 89eaa179825a2b6d8f526bee3d3e836cdae6ef1dadc4578c41eed90bdda0ff82 |
Close
Hashes for llama_index_packs_streamlit_chatbot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f0051ab0cc8c78d1a785157886091994e6a0b304cce9f10d869ef0380157a5 |
|
MD5 | ee4fe25778a5d7f6243c31c2e1acb2a0 |
|
BLAKE2b-256 | c7ecace6c1019a0d48435ba4ca51412b4436370a293eead0bdd4de44eff1ea82 |