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

community: Implement lazy_load() for MHTMLLoader #18648

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Mar 6, 2024

Covered by tests/unit_tests/document_loaders/test_mhtml.py

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 6, 2024
Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Mar 6, 2024 11:17am

@dosubot dosubot bot added Ɑ: doc loader Related to document loader module (not documentation) 🔌: anthropic Primarily related to Anthropic integrations 🤖:improvement Medium size change to existing code to handle new use-cases labels Mar 6, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Mar 6, 2024
@eyurtsev eyurtsev self-requested a review March 6, 2024 18:05
return [Document(page_content=text, metadata=metadata)]
return []
yield Document(page_content=text, metadata=metadata)
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return

Copy link
Collaborator Author

@cbornet cbornet Mar 6, 2024

Choose a reason for hiding this comment

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

If we do that, the behavior will be slightly different than what exists currently (ie returning only the first part that is text/html). Is that OK ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh my bad I think i didn't notice that this i what it was already doing

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Mar 7, 2024
@eyurtsev eyurtsev merged commit 6cd7607 into langchain-ai:master Mar 7, 2024
59 checks passed
@cbornet cbornet deleted the lazy-load-mhtml branch March 7, 2024 22:20
bechbd pushed a commit to bechbd/langchain that referenced this pull request Mar 29, 2024
…#18648)

Covered by `tests/unit_tests/document_loaders/test_mhtml.py`
gkorland pushed a commit to FalkorDB/langchain that referenced this pull request Mar 30, 2024
…#18648)

Covered by `tests/unit_tests/document_loaders/test_mhtml.py`
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
Covered by `tests/unit_tests/document_loaders/test_mhtml.py`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌: anthropic Primarily related to Anthropic integrations Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants