Skip to content

Commit 69669bb

Browse files
fix: error in 'Process and Ingest Web Pages' under 'Add URLs to the Knowledge Base' (CWYD) (#1816)
1 parent 7ae4b79 commit 69669bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/backend/pages/01_Ingest_Data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ def sanitize_metadata_value(value):
6464

6565

6666
def add_url_embeddings(urls: list[str]):
67+
has_valid_url = bool(list(filter(str.strip, urls)))
68+
if not has_valid_url:
69+
st.error("Please enter at least one valid URL.")
70+
return
71+
6772
params = {}
6873
if env_helper.FUNCTION_KEY is not None:
6974
params["code"] = env_helper.FUNCTION_KEY

0 commit comments

Comments
 (0)