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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a84210ea5edcc47e7c6a6937bed312a5de87673630c9bdb0bbe8e52f1cd4c963 |
|
MD5 | d1d636b6fa5dfb8eb87444ba29ee01b4 |
|
BLAKE2b-256 | e81e6126726011cc66b5a03f6051c0ca3b40b4a6e608cdfa508517d01b22ede9 |
Close
Hashes for llama_index_packs_streamlit_chatbot-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a148e5305204672909578336fa705248d27676151452d3f15e71ffeb0e414b |
|
MD5 | 154672d7416fd971fbb4cf74cb201880 |
|
BLAKE2b-256 | 4fd522bf3d41700db948d1aef23447cec34bfe4b433c74ca145da17d7d7f7206 |