Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing readable_filename in pdf ingest
Browse files Browse the repository at this point in the history
KastanDay committed Nov 7, 2023
1 parent 8b31219 commit d6f25dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
@@ -532,7 +532,7 @@ def _ingest_single_pdf(self, s3_path: str, course_name: str, **kwargs):
's3_path': s3_path,
'pagenumber': page['page_number'] + 1, # +1 for human indexing
'timestamp': '',
'readable_filename': page['readable_filename'],
'readable_filename': kwargs['readable_filename'] if 'readable_filename' in kwargs.keys() else page['readable_filename'],
'url': url,
'base_url': base_url,
} for page in pdf_pages_OCRed

0 comments on commit d6f25dc

Please sign in to comment.