Add WellMarkedRetriever and ruff lint#2
Merged
Conversation
- WellMarkedRetriever: the natural LangChain surface for the API's new /search endpoint. A query in, extracted result pages out as Documents, ready to drop into a RAG chain. Only successfully extracted results become Documents; a page that timed out or was blocked is skipped, since there is no content to embed. - Unit tests with the SDK client faked, matching the loader's test style (no network). - ruff added to the dev extras and to CI. Verified clean against the existing code before wiring it in, so it gates rather than breaks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's here
WellMarkedRetriever— the natural LangChain surface for the API's new/searchendpoint: a query in, extracted result pages out asDocuments, ready to drop into a RAG chain. Only successfully extracted results become Documents; a page that timed out or was blocked is skipped, since there's no content to embed.The new tests import
SearchResult/SearchResultsfromwellmarked, and CI installs the published package from PyPI. Those models aren't released yet, sopytestwill fail here until Python-SDK#4 is merged and released to PyPI. That red is the release gate working correctly.Locally the code is
py_compile-clean andruff checkpasses; the tests themselves couldn't be executed here (this repo has no local venv withlangchain_coreinstalled).🤖 Generated with Claude Code