Changelog¶
0.4.0 (2026-09-09)¶
Changed¶
- Renamed
folder_path→collection_pathonFoxNoseRetriever,FoxNoseLoader, andcreate_foxnose_tool, following the SDK's Folder → Collection rename. The legacyfolder_pathkwarg is still accepted with a one-shotDeprecationWarningand will be removed in 1.0; passing both raisesValueError. - BREAKING: requires Python 3.10+.
langchain-core1.x declaresRequires-Python >=3.10, so Python 3.9 is no longer supported. Python 3.9 users stay on 0.3.1. - BREAKING: requires
langchain-core>=1.0,<2.0. Support for the 0.3.x line is dropped. The integration's public behaviour is unchanged — thelangchain-coresurface it uses (BaseRetriever,BaseLoader,create_retriever_tool) is identical across 0.3.x and 1.x. - Require
foxnose-sdk>=0.8.1, for thedata_validation_errormapping a Flux write depends on: before it, a schema violation arrived as a plainFoxnoseAPIErrorand noexcept ContentValidationFailedbranch could fire.
Added¶
FoxNoseWriter— write LangChainDocumentobjects into a FoxNose collection via Fluxcreate_resource()/update_resource(), withadd_documents(),update_document(), and async variants. Supportsexternal_id_keydeduplication, a customdocument_mapper, and metadata whitelisting/blacklisting. Batches are written sequentially and stop at the first failure; there is deliberately no concurrency option, because overlapping non-idempotent writes cannot be reported on honestly.FoxNoseBatchWriteError— raised when a document batch fails part-way through, carryingwritten_keys(written, not rolled back — Flux has no delete endpoint),failed_index(outcome unknown: a 422/409 wrote nothing, but a 502 or timeout may have written it),pending_indexes(guaranteed not attempted),total, andcause(the underlying typed SDK error — branch on that, not on a secondexcept). A local mapping error is raised before any request, so it writes nothing at all.truncate_textandquery_paramsonFoxNoseRetriever, andtruncate_textonFoxNoseLoader— forward query-string parameters to the FoxNose API to cap the length oftext-typed fields server-side.
Removed¶
build_search_body()(modulelangchain_foxnose._search), deprecated since 0.3.0.
Fixed¶
FoxNoseLoadercould paginate forever. FoxNose returns thenextfield as a full URL, not as the opaque token thenextquery parameter accepts. Feeding the URL back meant the backend could not parse it, silently answered with page one again and returned the samenext—load()re-fetched the first page indefinitely (17k requests in 30 seconds against a live backend). Cursors are now reduced to their token, and each is followed at most once, so a backend that cycles (A -> B -> A) terminates instead of spinning.top_kdid not limit results inhybridandvector_boostedmodes. It was forwarded only as the vector-side candidate count, leaving the page size at the backend default, so a retriever built withtop_k=3could return every matching document. It now caps the results in every mode, as documented; an explicitsearch_kwargs={"limit": ...}still takes precedence.py.typedis now shipped inside the package. The marker sat at the repository root, where PEP 561 does not look for it, so it never reached the wheel: every downstream project gotmissing py.typed markerfrom mypy and fell back toAnyfor the whole package, despite the source being fully annotated.search_kwargs={"truncate_text": ...}used to reach the request body, wherefoxnose-sdk0.8.0 rejects it. Query-string keys are now rejected at validation time with a message pointing at the new parameters.- Documentation and examples migrated to the LangChain 1.x agent pattern.
docs/getting-started.mdanddocs/examples.mdimportedRetrievalQAfromlangchain.chains, a module that no longer exists in LangChain 1.x (ModuleNotFoundError) — those examples were unrunnable. They now uselangchain.agents.create_agent, and source documents come from the tool'scontent_and_artifactresponse rather than the removedresult["source_documents"].docs/tool.md,examples/agent_tool.pyand the README moved off the deprecatedlanggraph.prebuilt.create_react_agent. - Documentation and examples now use
collection_pathrather than the deprecatedfolder_path, so following the docs no longer triggers aDeprecationWarning. mypy'spython_versionpin was dropped: pinning it to the 3.10 floor made mypy parse third-party stubs under 3.10 rules, and numpy >= 2.3 (pulled in transitively bylangchain-tests) ships PEP 695 stubs that are 3.12-only syntax — somypy src/failed in any environment with both extras installed, which is whatmake installcreates. The floor is enforced by ruff'starget-versionand by the CI matrix actually running on 3.10.
0.3.1 (2026-03-23)¶
Fixed¶
limitnow defaults totop_kin the vector search modes.- Added a runtime
kalias fortop_koninvoke()/ainvoke(). - Added a CI guard that fails fast when integration-test secrets are missing.
0.3.0 (2026-03-20)¶
- Vector field search with custom embeddings — new
embeddings,query_vector, andvector_fieldparameters onFoxNoseRetrieverallow using custom pre-computed embedding vectors or LangChainEmbeddingsmodels for semantic search via the SDK'svector_field_search()method - SDK convenience methods — the retriever now uses SDK v0.5.0 convenience methods (
vector_search(),hybrid_search(),boosted_search(),vector_field_search()) instead of manually building request bodies - Strict config validation —
hybrid_configandvector_boost_configdicts are now validated against strict models that reject unknown keys (typos are caught at init time) - search_kwargs improvements — known keys like
limitandoffsetare extracted as named SDK method parameters; conflicting keys (e.g.search_mode,vector_search) are rejected at validation time - Deprecation —
build_search_body()is deprecated and will be removed in v0.4.0 - Require
foxnose-sdk>=0.5.0
0.2.1 (2026-03-18)¶
- Align package metadata versioning so
langchain_foxnose.__version__matches the published package version - Require
foxnose-sdk>=0.4.2for the secure-auth signing fix
0.1.0 (2026-01-27)¶
Initial release.
FoxNoseRetriever— LangChainBaseRetrieverbacked by FoxNose Flux search- Support for all search modes: text, vector, hybrid, and vector-boosted
- Flexible content mapping: single field, multiple fields, or custom mapper
- Metadata control: whitelist, blacklist, system metadata toggle
- Native async support via
AsyncFluxClient - Structured filtering via
whereparameter - Convenience
from_client_params()constructor