Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +1 -1
chatbot_rag.py
CHANGED
|
@@ -95,7 +95,7 @@ def build_qa():
|
|
| 95 |
|
| 96 |
# 6. Helper functions
|
| 97 |
def format_docs(docs):
|
| 98 |
-
|
| 99 |
texts = []
|
| 100 |
for doc in docs:
|
| 101 |
if doc.page_content and isinstance(doc.page_content, str):
|
|
|
|
| 95 |
|
| 96 |
# 6. Helper functions
|
| 97 |
def format_docs(docs):
|
| 98 |
+
"""Join document contents into a single string, skipping empty ones."""
|
| 99 |
texts = []
|
| 100 |
for doc in docs:
|
| 101 |
if doc.page_content and isinstance(doc.page_content, str):
|