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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a93e66eac5e54d09b56b8f58d4875cb605d299687283babaa5e4b35b0ef7f5d1 |
|
MD5 | c71d38e1c4bb5fa498646c12e8f127e7 |
|
BLAKE2b-256 | 815abb7a152a853458ffde8ccb9be21ee1a1606f819b091e20ceb6873597434a |
Close
Hashes for llama_index_packs_streamlit_chatbot-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25845edeb8caa954da79270308530497931446b4a36c9e6be328afc1fd767c87 |
|
MD5 | 7b2f88384092f7d8a39fce5e74008962 |
|
BLAKE2b-256 | 22d54e96235fdebc5bf819ad6a8e982372617851cbb30aae6574e372ca8fafdc |