File size: 451 Bytes
e04dd70
 
f85c548
e04dd70
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
from retrieve_kb import get_current_knowledge_bases
from app import client


st.title("Delete knowledge Base ☠️")

st.title("Get knowledge boxes")
if st.button("Get current knowledge bases"):
    kbs = get_current_knowledge_bases(client=client)
    st.json(kbs)

collection_name = st.text_input(label="collection name")
if st.button("Delete Forever"):
    client.delete_collection(collection_name)
    st.success("Deleted")