Skip to content

Commit

Permalink
✨ Add logger message for completion of PDF processing
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste-pasquier committed Mar 26, 2024
1 parent ad4ad14 commit d956532
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/rag_1/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def main(config: DictConfig) -> None:
for file_path in tqdm(sorted(docs_folder.glob("**/*.pdf"))):
ingest_pdf(file_path, config)

logger.info("Finished processing all PDF files")


if __name__ == "__main__":
main()
2 changes: 2 additions & 0 deletions backend/rag_2/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def main(config: DictConfig) -> None:
loop = asyncio.get_event_loop()
loop.run_until_complete(ingest_pdf(file_path, config))

logger.info("Finished processing all PDF files")


if __name__ == "__main__":
main()
2 changes: 2 additions & 0 deletions backend/rag_3/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def main(config: DictConfig) -> None:
loop = asyncio.get_event_loop()
loop.run_until_complete(ingest_pdf(file_path, config))

logger.info("Finished processing all PDF files")


if __name__ == "__main__":
main()

0 comments on commit d956532

Please sign in to comment.