Improve Streamlit docs (#1025)
This commit is contained in:
@@ -3,7 +3,9 @@ title: '⛓️ Chainlit'
|
||||
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.
|
||||
|
||||

|
||||
|
||||
## Setup
|
||||
|
||||
@@ -64,5 +66,3 @@ chainlit run app.py
|
||||
## Try it out
|
||||
|
||||
Open the app in your browser and start chatting with it!
|
||||
|
||||

|
||||
|
||||
@@ -3,17 +3,17 @@ title: '🚀 Streamlit'
|
||||
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.
|
||||
|
||||

|
||||
|
||||
## Setup
|
||||
|
||||
<Accordion title="Customize using code.">
|
||||
1. Install Embedchain and Streamlit
|
||||
```bash
|
||||
pip install embedchain
|
||||
pip install streamlit
|
||||
```
|
||||
<Tabs>
|
||||
Install Embedchain and Streamlit.
|
||||
```bash
|
||||
pip install embedchain streamlit
|
||||
```
|
||||
<Tabs>
|
||||
<Tab title="app.py">
|
||||
```python
|
||||
import os
|
||||
@@ -91,7 +91,7 @@ In this example, we will learn how to use `mistralai/Mistral-7B-v0.1` and Embedc
|
||||
llm:
|
||||
provider: huggingface
|
||||
config:
|
||||
model: 'mistralai/Mistral-7B-v0.1'
|
||||
model: 'mistralai/Mixtral-8x7B-Instruct-v0.1'
|
||||
temperature: 0.1
|
||||
max_tokens: 250
|
||||
top_p: 0.1
|
||||
@@ -103,8 +103,7 @@ In this example, we will learn how to use `mistralai/Mistral-7B-v0.1` and Embedc
|
||||
model: 'sentence-transformers/all-mpnet-base-v2'
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Accordion>
|
||||
</Tabs>
|
||||
|
||||
## To run it locally,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user