collection-manager / pages /delete_knowledge_box⚠️.py
marcellopoliti's picture
replace main with app
f85c548
raw
history blame
451 Bytes
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")