# 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
```
Raw data
{
"_id": null,
"home_page": "",
"name": "llama-index-packs-streamlit-chatbot",
"maintainer": "carolinedlu",
"docs_url": null,
"requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*",
"maintainer_email": "",
"keywords": "chatbot,snowflake,streamlit,wikipedia",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/de/25/d748657a43d4492f3dffa52d59e68aee785cd3d5710be083a5d6ee3893ce/llama_index_packs_streamlit_chatbot-0.1.4.tar.gz",
"platform": null,
"description": "# Steamlit Chatbot Pack\n\nBuild a chatbot powered by LlamaIndex that augments an LLM with the contents of Snowflake's Wikipedia page (or your own data).\n\n- Takes user queries via Streamlit's `st.chat_input` and displays both user queries and model responses with `st.chat_message`\n- 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\n- UI will stream each answer from the LLM\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\npip install llama-index\n```\n\n```bash\nllamaindex-cli download-llamapack StreamlitChatPack --download-dir ./streamlit_chatbot_pack\n```\n\nYou can then inspect the files at `./streamlit_chatbot_pack` and use them as a template for your own project!\n\nTo run the app directly, use in your terminal:\n\n```bash\nexport OPENAI_API_KEY=\"sk-...\"\nstreamlit run ./streamlit_chatbot_pack/base.py\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index packs streamlit_chatbot integration",
"version": "0.1.4",
"project_urls": null,
"split_keywords": [
"chatbot",
"snowflake",
"streamlit",
"wikipedia"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1e2cda02d0c0e7f6672b95f58f4c831909532c9c89cb64933a6022bf8d762c56",
"md5": "abcda77647df3de296eacbc6c6ada9b7",
"sha256": "ced88db74105b0b71073383a02b2cb32516684c613e483abc15fadae6cf19a32"
},
"downloads": -1,
"filename": "llama_index_packs_streamlit_chatbot-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abcda77647df3de296eacbc6c6ada9b7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*",
"size": 4073,
"upload_time": "2024-02-22T03:17:34",
"upload_time_iso_8601": "2024-02-22T03:17:34.649071Z",
"url": "https://files.pythonhosted.org/packages/1e/2c/da02d0c0e7f6672b95f58f4c831909532c9c89cb64933a6022bf8d762c56/llama_index_packs_streamlit_chatbot-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "de25d748657a43d4492f3dffa52d59e68aee785cd3d5710be083a5d6ee3893ce",
"md5": "7c2fe07855b84f30117dedf27c495b84",
"sha256": "53e91ea43352bca4510d510e34b8318df844c63460081393df16dd442796452f"
},
"downloads": -1,
"filename": "llama_index_packs_streamlit_chatbot-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "7c2fe07855b84f30117dedf27c495b84",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*",
"size": 3761,
"upload_time": "2024-02-22T03:17:35",
"upload_time_iso_8601": "2024-02-22T03:17:35.648959Z",
"url": "https://files.pythonhosted.org/packages/de/25/d748657a43d4492f3dffa52d59e68aee785cd3d5710be083a5d6ee3893ce/llama_index_packs_streamlit_chatbot-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-22 03:17:35",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-streamlit-chatbot"
}