[Docs] Documentation updates (#1014)

This commit is contained in:
Deven Patel
2023-12-15 17:02:50 +05:30
committed by GitHub
parent 65c8dd445b
commit b246d9823e
7 changed files with 67 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
---
title: 🗑 delete
---
`delete_chat_history()` method allows you to delete all previous messages in a chat history.
## Usage
```python
from embedchain import Pipeline as App
app = App()
app.add("https://www.forbes.com/profile/elon-musk")
app.chat("What is the net worth of Elon Musk?")
app.delete_chat_history()
```

View File

@@ -14,4 +14,4 @@ app.add("https://www.forbes.com/profile/elon-musk")
# Reset the app
app.reset()
```
```