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

Add Steel loader for Langchain #28757

Closed
wants to merge 2 commits into from

Conversation

rezapex
Copy link

@rezapex rezapex commented Dec 17, 2024

Add SteelLoader for Langchain to load web pages.

  • New SteelLoader Class

    • Create SteelLoader class in libs/community/langchain_community/document_loaders/steel.py.
    • Implement proper error handling and logging in SteelLoader.
    • Ensure SteelLoader works with both Self-hosted Steel and Steel Cloud.
  • Update Init File

    • Import SteelLoader class in libs/community/langchain_community/document_loaders/__init__.py.
    • Add SteelLoader to __all__ list in libs/community/langchain_community/document_loaders/__init__.py.

Add SteelLoader for Langchain to load web pages.

* **New SteelLoader Class**
  - Create `SteelLoader` class in `libs/community/langchain_community/document_loaders/steel.py`.
  - Implement proper error handling and logging in `SteelLoader`.
  - Ensure `SteelLoader` works with both Self-hosted Steel and Steel Cloud.

* **Update Init File**
  - Import `SteelLoader` class in `libs/community/langchain_community/document_loaders/__init__.py`.
  - Add `SteelLoader` to `__all__` list in `libs/community/langchain_community/document_loaders/__init__.py`.
Copy link

vercel bot commented Dec 17, 2024

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

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

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) labels Dec 17, 2024
* **Successful scenarios**
  - Test `lazy_load` method with `text_content=True` and `text_content=False`
  - Mock `requests.post` to simulate API responses
  - Validate `Document` objects' content and metadata

* **Unsuccessful scenarios**
  - Test invalid API token handling
  - Test unreachable URL handling
  - Mock `requests.post` to simulate errors

* **Integration**
  - Integrate tests into the existing test suite and CI/CD pipeline
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 17, 2024
@rezapex rezapex closed this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant