Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def initialize_knowledge_base():
|
|
| 68 |
if contents_to_add:
|
| 69 |
try:
|
| 70 |
# Using add_contents which is recommended for batch processing
|
| 71 |
-
knowledge.
|
| 72 |
logger.info(f"✅ Successfully added {len(contents_to_add)} PDFs to the knowledge base.")
|
| 73 |
except Exception as e:
|
| 74 |
logger.error(f"Failed to add PDFs to knowledge base: {e}")
|
|
|
|
| 68 |
if contents_to_add:
|
| 69 |
try:
|
| 70 |
# Using add_contents which is recommended for batch processing
|
| 71 |
+
knowledge.add_content(contents_to_add)
|
| 72 |
logger.info(f"✅ Successfully added {len(contents_to_add)} PDFs to the knowledge base.")
|
| 73 |
except Exception as e:
|
| 74 |
logger.error(f"Failed to add PDFs to knowledge base: {e}")
|