Metadata-Version: 2.1
Name: llama-index-packs-streamlit-chatbot
Version: 0.2.1
Summary: llama-index packs streamlit_chatbot integration
License: MIT
Keywords: chatbot,snowflake,streamlit,wikipedia
Author: Your Name
Author-email: you@example.com
Maintainer: carolinedlu
Requires-Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: llama-index-core (>=0.10.11.post1,<0.11.0)
Requires-Dist: llama-index-readers-wikipedia (>=0.1.1,<0.2.0)
Requires-Dist: openai (>=1.10.0,<2.0.0)
Requires-Dist: streamlit (>=1.30.0,<2.0.0)
Requires-Dist: streamlit-pills (>=0.3.0,<0.4.0)
Requires-Dist: wikipedia (>=1.4.0,<2.0.0)
Description-Content-Type: text/markdown

# 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 with `st.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:

```bash
pip install llama-index
```

```bash
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:

```bash
export OPENAI_API_KEY="sk-..."
streamlit run ./streamlit_chatbot_pack/base.py
```

