Skip to content

Fix PDF upload to not split into pages #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: initial_deploy
Choose a base branch
from

Conversation

DFMERA
Copy link
Owner

@DFMERA DFMERA commented Dec 16, 2024

Modify the functionality in PrepareDocs and MinimalAPI to upload complete PDFs to blob storage without splitting them into pages.

  • app/backend/Services/AzureBlobStorageService.cs

    • Remove the loop that splits PDFs into pages.
    • Update the UploadFilesAsync method to upload complete PDFs without splitting.
    • Add logic to upload the entire PDF file.
  • app/prepdocs/PrepareDocs/Program.cs

    • Remove the loop that splits PDFs into pages.
    • Update the UploadBlobsAndCreateIndexAsync method to upload complete PDFs without splitting.
    • Add logic to upload the entire PDF file.

For more details, open the Copilot Workspace session.

Modify the functionality in `PrepareDocs` and `MinimalAPI` to upload complete PDFs to blob storage without splitting them into pages.

* **app/backend/Services/AzureBlobStorageService.cs**
  - Remove the loop that splits PDFs into pages.
  - Update the `UploadFilesAsync` method to upload complete PDFs without splitting.
  - Add logic to upload the entire PDF file.

* **app/prepdocs/PrepareDocs/Program.cs**
  - Remove the loop that splits PDFs into pages.
  - Update the `UploadBlobsAndCreateIndexAsync` method to upload complete PDFs without splitting.
  - Add logic to upload the entire PDF file.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DFMERA/azure-search-openai-demo-csharp/tree/initial_deploy?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed.

@github-actions github-actions bot added the Stale label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant