diff --git a/daras_ai_v2/doc_search_settings_widgets.py b/daras_ai_v2/doc_search_settings_widgets.py index da985e118..ae67215b4 100644 --- a/daras_ai_v2/doc_search_settings_widgets.py +++ b/daras_ai_v2/doc_search_settings_widgets.py @@ -71,7 +71,7 @@ def bulk_documents_uploader( accept=accept, accept_multiple_files=True, ) - gui.checkbox("Submit Links in Bulk", key=f"__custom_checkbox_{key}") + gui.checkbox("Show as Links", key=f"__custom_checkbox_{key}") documents = gui.session_state.setdefault(key, []) try: documents = list(_expand_gdrive_folders(documents)) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 6a69934ec..3ccde0abb 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -582,8 +582,29 @@ def render_settings(self): ) citation_style_selector() - gui.checkbox("🔗 Shorten Citation URLs", key="use_url_shortener") + gui.checkbox("🔗 Shorten citation links", key="use_url_shortener") + gui.write("###### Cache") + gui.caption( + f""" + By default we embed your knowledge files & links and cache their contents for fast responses. + """ + ) + col1, col2 = gui.columns(2, style={"alignItems": "center"}) + with col1: + gui.checkbox( + "Always Check for Updates", + help="With each incoming message, documents and links will be checked for changes and re-indexed. Slower but useful for dynamic webpages, Google Sheets, Docs, etc that change often.", + tooltip_placement="bottom", + ) + with col2: + with gui.tooltip( + "Clear the knowledge cache and re-index all knowledge base files and links." + ): + gui.button( + "♻️ Refresh Cache", + type="tertiary", + ) doc_extract_selector(self.request.user) gui.write("---")