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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244dd9bf4c3b63f63ff3fa3bf7ed4be5f06b8bcb1dfd53d61b8615326f3bd839 |
|
MD5 | b4deade8465d2ca6ad3411c5280caf7f |
|
BLAKE2b-256 | 27ccd6af3c774e01209af24641c723c4cfcaae276c99c7625963812f7573b96a |
Close
Hashes for llama_index_packs_streamlit_chatbot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb0487b190069168c9775b5129e5d3c592a7c73cacb7476bfa94215a4111481 |
|
MD5 | fe79c2623ec07ac459e56f099bd52c3f |
|
BLAKE2b-256 | b94670bc60b6a90ba7f0a7206b7363d1041d875dd15b26bc78ac4ea9a70f1101 |