AIAnytime / AIAnytime/Search-Your-PDF-App
Only last pdf is getting ingested into the database
オープン
- 主要言語
- 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 はまだ評価されていません。