Skip to content

feat!: rename AdditionalSourceInfo field and update clustering defaults - #35

Closed
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-04-23T13-57Z
Closed

fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-04-23T13-57Z

Conversation

@fern-api

@fern-api fern-api Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

⚠️ 2.0.3 → 3.0.0

Breaking: Renaming the public attribute nb_articles_for_7_d to nb_articles_for7d on AdditionalSourceInfo breaks any existing caller that accesses that field by its old name.

Breaking Changes

  • AdditionalSourceInfo.nb_articles_for_7_d has been renamed to nb_articles_for7d. Update any attribute access from .nb_articles_for_7_d to .nb_articles_for7d.

Added

  • NlpDataEntity.qwen_embedding — new optional field providing a dense 1024-dimensional embedding generated by the Qwen3-Embedding-0.6B model, available for articles indexed from January 1, 2026 onward (requires v3_nlp_embeddings plan).

Changed

  • ClusteringThreshold default value updated from 0.6 to 0.7; the documented example range has shifted to reflect updated similarity thresholds across all clustering-enabled endpoints.
  • HasNlp / IncludeNlpData type aliases now document that NLP data is only available for articles indexed from July 2023 onward.
  • NlpDataEntity.new_embedding docstring clarified to note availability only for articles indexed before January 1, 2026.

See full changelog

Rename the public Python attribute `nb_articles_for_7_d` to
`nb_articles_for7d` on `AdditionalSourceInfo`, which is a breaking
change for any caller accessing that field by name. Also adds the new
`qwen_embedding` field to `NlpDataEntity`, updates clustering threshold
defaults and documentation examples throughout, refreshes dependency
version constraints, and improves docstrings for NLP-related types.

Key changes:
- `AdditionalSourceInfo.nb_articles_for_7_d` renamed to `nb_articles_for7d` (breaking)
- `NlpDataEntity` gains new optional `qwen_embedding` field (Qwen3-Embedding-0.6B model)
- Clustering threshold default updated from 0.6 to 0.7; example range shifted accordingly
- Code examples updated to use relative date strings ("1 day ago") instead of `datetime` objects
- `aiohttp` minimum version bumped to >=3.13.4; `pytest` updated to ^9.0.3; `urllib3` constraint added

🌿 Generated with Fern
@oscatcher oscatcher closed this Apr 23, 2026
@oscatcher
oscatcher deleted the fern-bot/2026-04-23T13-57Z branch May 1, 2026 15:29
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