AIAnytime / AIAnytime/Search-Your-PDF-App

Only last pdf is getting ingested into the database

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
62
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

説明

There is a small inaccuracy in ingest.py where documents are not loaded into the variable and the variable does not include the fact that the documents will be a list type rather than a single document.

`documents = []
for root, dirs, files in os.walk("docs"):
for file in files:
if file.endswith(".pdf"):
loader = PyPDFLoader(os.path.join(root, file))
documents.extend(loader.load())
print(file)`
The above code is a fix for the issue

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。