Skip to content

Commit d1f07b5

Browse files
committed
chore: tidy up
1 parent 9abb309 commit d1f07b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aperag/index/vector_index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import json
1616
import logging
17+
import traceback
1718
from typing import Any, List
1819

1920
from sqlalchemy import and_, select
@@ -174,6 +175,7 @@ def update_index(self, document_id: str, content: str, doc_parts: List[Any], col
174175
)
175176

176177
except Exception as e:
178+
traceback.print_exc()
177179
logger.error(f"Vector index update failed for document {document_id}: {str(e)}")
178180
return IndexResult(success=False, index_type=self.index_type, error=f"Vector index update failed: {str(e)}")
179181

0 commit comments

Comments
 (0)