Improve Streamlit docs (#1025)

This commit is contained in:
Sidharth Mohanty
2023-12-18 18:25:17 +05:30
committed by GitHub
parent db37b2ac15
commit 33dcfe42b5
2 changed files with 89 additions and 90 deletions

View File

@@ -3,7 +3,9 @@ title: '⛓️ Chainlit'
description: 'Integrate with Chainlit to create LLM chat apps' description: 'Integrate with Chainlit to create LLM chat apps'
--- ---
In this example, we will learn how to use Chainlit and Embedchain together In this example, we will learn how to use Chainlit and Embedchain together.
![chainlit-demo](https://github.com/embedchain/embedchain/assets/73601258/d6635624-5cdb-485b-bfbd-3b7c8f18bfff)
## Setup ## Setup
@@ -64,5 +66,3 @@ chainlit run app.py
## Try it out ## Try it out
Open the app in your browser and start chatting with it! Open the app in your browser and start chatting with it!
![chainlit-demo](https://github.com/embedchain/embedchain/assets/73601258/d6635624-5cdb-485b-bfbd-3b7c8f18bfff)

View File

@@ -3,15 +3,15 @@ title: '🚀 Streamlit'
description: 'Integrate with Streamlit to plug and play with any LLM' description: 'Integrate with Streamlit to plug and play with any LLM'
--- ---
In this example, we will learn how to use `mistralai/Mistral-7B-v0.1` and Embedchain together with Streamlit to build a simple RAG chatbot. In this example, we will learn how to use `mistralai/Mixtral-8x7B-Instruct-v0.1` and Embedchain together with Streamlit to build a simple RAG chatbot.
![Streamlit + Embedchain Demo](https://github.com/embedchain/embedchain/assets/73601258/052f7378-797c-41cf-ac81-f004d0d44dd1)
## Setup ## Setup
<Accordion title="Customize using code."> Install Embedchain and Streamlit.
1. Install Embedchain and Streamlit
```bash ```bash
pip install embedchain pip install embedchain streamlit
pip install streamlit
``` ```
<Tabs> <Tabs>
<Tab title="app.py"> <Tab title="app.py">
@@ -91,7 +91,7 @@ In this example, we will learn how to use `mistralai/Mistral-7B-v0.1` and Embedc
llm: llm:
provider: huggingface provider: huggingface
config: config:
model: 'mistralai/Mistral-7B-v0.1' model: 'mistralai/Mixtral-8x7B-Instruct-v0.1'
temperature: 0.1 temperature: 0.1
max_tokens: 250 max_tokens: 250
top_p: 0.1 top_p: 0.1
@@ -104,7 +104,6 @@ In this example, we will learn how to use `mistralai/Mistral-7B-v0.1` and Embedc
``` ```
</Tab> </Tab>
</Tabs> </Tabs>
</Accordion>
## To run it locally, ## To run it locally,