feat: reset (#169)
This commit is contained in:
@@ -323,6 +323,15 @@ All options for query and...
|
||||
|
||||
*coming soon*
|
||||
|
||||
## Other methods
|
||||
|
||||
### Reset
|
||||
Resets the database and deletes all embeddings. Irreversible. Requires reinitialization afterwards.
|
||||
|
||||
```python
|
||||
app.reset()
|
||||
```
|
||||
|
||||
# How does it work?
|
||||
|
||||
Creating a chat bot over any dataset needs the following steps to happen
|
||||
|
||||
@@ -299,6 +299,14 @@ class EmbedChain:
|
||||
return prompt
|
||||
|
||||
|
||||
def reset(self):
|
||||
"""
|
||||
Resets the database. Deletes all embeddings irreversibly.
|
||||
`App` has to be reinitialized after using this method.
|
||||
"""
|
||||
self.db_client.reset()
|
||||
|
||||
|
||||
class App(EmbedChain):
|
||||
"""
|
||||
The EmbedChain app.
|
||||
|
||||
Reference in New Issue
Block a user