[PR #4852] [MERGED] Error handling load_single_document() in ingest.py #11601

Closed
opened 2026-04-12 23:33:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4852
Author: @dcasota
Created: 6/6/2024
Status: Merged
Merged: 6/9/2024
Merged by: @jmorganca

Base: mainHead: patch-1


📝 Commits (1)

  • ea6e397 Error handling load_single_document() in ingest.py

📊 Changes

1 file changed (+16 additions, -7 deletions)

View changed files

📝 examples/langchain-python-rag-privategpt/ingest.py (+16 -7)

📄 Description

load_single_document() handles

  • corrupt files
  • empty (zero byte) files
  • unsupported file extensions

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/4852 **Author:** [@dcasota](https://github.com/dcasota) **Created:** 6/6/2024 **Status:** ✅ Merged **Merged:** 6/9/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`ea6e397`](https://github.com/ollama/ollama/commit/ea6e397d3558f269e1e0a7b39e344a55240134bd) Error handling load_single_document() in ingest.py ### 📊 Changes **1 file changed** (+16 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `examples/langchain-python-rag-privategpt/ingest.py` (+16 -7) </details> ### 📄 Description load_single_document() handles - corrupt files - empty (zero byte) files - unsupported file extensions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:33:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11601