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_inputand 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_packs_streamlit_chatbot-0.4.1.tar.gz.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.4.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaa66dc719bc6429dcc47171e73daaeecb8e7b23c1082c360f3dff3e8b5bf806
|
|
| MD5 |
7c584c57c410e048bd5c0b0a73c77a1e
|
|
| BLAKE2b-256 |
9c3237702d6c2efaa85817ac32eab02ba64f576361393fbfd25d3ebc0945b7a4
|
File details
Details for the file llama_index_packs_streamlit_chatbot-0.4.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_packs_streamlit_chatbot-0.4.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb6b4637d6578ad0f3dd012c2c254a5ad6a1e569e35282547f141419b59ad07f
|
|
| MD5 |
16ad15ee3cfe64b95118eff74e0007a9
|
|
| BLAKE2b-256 |
950051ae56a72f414de92addfb32997545801678ff0c2051ffe74210ab086265
|