Made changes to suit Openwebui

This commit is contained in:
Iyeoluwa Akinrinola
2025-05-09 16:47:30 +01:00
parent ac98999507
commit 9535052645
14 changed files with 93 additions and 330 deletions
+2 -2
View File
@@ -30,10 +30,10 @@ class DocumentService:
self.openwebui_api_key = config.OPENWEBUI_API_KEY
# Ensure data directory exists
os.makedirs(os.path.dirname(config.SQLITE_DB_PATH), exist_ok=True)
os.makedirs('ai_service/data', exist_ok=True)
# For now, we'll store document metadata in a simple JSON file
self.metadata_file = os.path.join(os.path.dirname(config.SQLITE_DB_PATH), 'document_metadata.json')
self.metadata_file = 'ai_service/data/document_metadata.json'
self._load_metadata()
def _load_metadata(self):