Skip to content

Add WellMarkedRetriever and ruff lint#2

Merged
gradill22 merged 1 commit into
mainfrom
feat/wellmarked-loader
Jul 23, 2026
Merged

Add WellMarkedRetriever and ruff lint#2
gradill22 merged 1 commit into
mainfrom
feat/wellmarked-loader

Conversation

@gradill22

Copy link
Copy Markdown
Contributor

What's here

  • 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's no content to embed.
  • Unit tests with the SDK client faked (no network), matching the existing loader's test style.
  • ruff added to the dev extras and to CI. I verified it runs clean against the existing code before wiring it in, so it gates future changes rather than immediately breaking the build.

⚠️ CI will be red until the Python SDK is published

The new tests import SearchResult / SearchResults from wellmarked, and CI installs the published package from PyPI. Those models aren't released yet, so pytest will 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 and ruff check passes; the tests themselves couldn't be executed here (this repo has no local venv with langchain_core installed).

🤖 Generated with Claude Code

- 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>
@gradill22 gradill22 self-assigned this Jul 23, 2026
@gradill22
gradill22 merged commit 07f4f74 into main Jul 23, 2026
0 of 6 checks passed
@gradill22
gradill22 deleted the feat/wellmarked-loader branch July 23, 2026 05:46
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.

1 participant