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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e91ea43352bca4510d510e34b8318df844c63460081393df16dd442796452f |
|
MD5 | 7c2fe07855b84f30117dedf27c495b84 |
|
BLAKE2b-256 | de25d748657a43d4492f3dffa52d59e68aee785cd3d5710be083a5d6ee3893ce |
Close
Hashes for llama_index_packs_streamlit_chatbot-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced88db74105b0b71073383a02b2cb32516684c613e483abc15fadae6cf19a32 |
|
MD5 | abcda77647df3de296eacbc6c6ada9b7 |
|
BLAKE2b-256 | 1e2cda02d0c0e7f6672b95f58f4c831909532c9c89cb64933a6022bf8d762c56 |