Skip to content
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

Fix: Update the path to the Google-10K 14 page pdf in multimodal_rag_langchain.ipynb #1596

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

SanjaySG
Copy link
Contributor

@SanjaySG SanjaySG commented Jan 3, 2025

The google-10k-sample-14pages.pdf needed for the gemini/use-cases/retrieval-augmented-generation/multimodal_rag_langchain.ipynb is present in gs://github-repo/rag/multimodal_rag_langchain/ instead of gs://github-repo/rag/intro_multimodal_rag/. This PR updates the path for downloading it in the rsync command.

Fixes #742

@SanjaySG SanjaySG requested a review from a team as a code owner January 3, 2025 16:59
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Contributor

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi team,

I'm currently reviewing this pull request and will provide my feedback shortly. In the meantime, here's a summary for you and other reviewers to quickly get up to speed:

This pull request, submitted by SanjaySG, addresses issue #742. The goal is to fix a broken path in the multimodal_rag_langchain.ipynb notebook within the generative-ai repository. Specifically, the notebook uses a gsutil command to download a 14-page PDF (google-10k-sample-14pages.pdf) required for the notebook's functionality.

Summary of Changes:

  • The primary change is a correction to the gsutil rsync command within the Jupyter Notebook (gemini/use-cases/retrieval-augmented-generation/multimodal_rag_langchain.ipynb).
  • The original command incorrectly pointed to gs://github-repo/rag/intro_multimodal_rag/.
  • This PR updates the path to the correct location: gs://github-repo/rag/multimodal_rag_langchain/ (lines 391 in the Jupyter Notebook).

In short: The PR fixes a broken file path, ensuring the necessary PDF is downloaded correctly for the notebook to function as intended.


Here's a little haiku to lighten the mood:

Path was wrong, you see,
Now the PDF downloads fine,
Code works, all is well.

Looking forward to discussing this further!

Best,
Gemini/code-review-assist

Copy link
Contributor

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request corrects the path to the Google-10K 14-page sample PDF used in the multimodal_rag_langchain.ipynb notebook. The change is correct and addresses the issue described. However, I have a few suggestions to improve the notebook's overall quality and robustness.

Summary of Style Guide Elements Referenced:

Since no specific style guide was provided, I've referenced general best practices for Python and Jupyter notebooks, including clear comments, descriptive variable names, and efficient use of shell commands.

Copy link
Contributor

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi team,

I'm currently reviewing this pull request and will provide a full review shortly. In the meantime, here's a quick summary for you and other reviewers to get up to speed:

This pull request, submitted by SanjaySG, addresses issue #742. The goal is to fix a broken path in the multimodal_rag_langchain.ipynb notebook within the generative-ai repository. Specifically, the notebook uses a gsutil command to download a 14-page PDF (google-10k-sample-14pages.pdf) for use in the examples.

Changes:

  • The primary change is in gemini/use-cases/retrieval-augmented-generation/multimodal_rag_langchain.ipynb. The gsutil command's source path was incorrect, pointing to gs://github-repo/rag/intro_multimodal_rag/ instead of the correct location: gs://github-repo/rag/multimodal_rag_langchain/. This PR updates line 391 to correct this path.

Before:

!gsutil -m rsync -r gs://github-repo/rag/intro_multimodal_rag/ .

After:

!gsutil -m rsync -r gs://github-repo/rag/multimodal_rag_langchain/ .

This ensures the notebook correctly downloads the necessary PDF for its examples to function.

In short: A simple fix to a file path in a Jupyter Notebook to enable correct download of a sample PDF.


A little haiku to brighten your day:

Files fixed with care,
Paths now lead where they should go,
Code flows smoothly on.

Copy link
Contributor

Gemini encountered an error creating the review. You can try again by commenting @code-review-assist review.

@SanjaySG
Copy link
Contributor Author

SanjaySG commented Jan 3, 2025

@holtskinner Can you please review this PR?
This fixes the path for the google-10k-sample-14pages.pdf needed by the notebook.

@holtskinner holtskinner merged commit c8bbcc5 into GoogleCloudPlatform:main Jan 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Missing files for example multimodal_rag_langchain.ipynb
2 participants