Download Latest Version v0.27.0 source code.zip (36.1 MB)
Email in envelope

Get an email when there's a new version of ContextGem

Home / v0.27.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-08-13 960 Bytes
v0.27.0 source code.tar.gz 2026-08-13 35.7 MB
v0.27.0 source code.zip 2026-08-13 36.1 MB
Totals: 3 Items   71.8 MB 0

Added

  • Added Document.get_paragraph_index() and Document.get_sentence_index() for locating paragraph and sentence objects within a document. Lookups are keyed by unique ID rather than text equality, so paragraphs/sentences with identical text (e.g. duplicate clauses in a contract) resolve to their specific occurrences. This makes the methods suitable for locating reference_paragraphs/reference_sentences returned during extraction, including after serialization round-trips, which preserve unique IDs. Lookups are O(1) on average via lazily built internal caches that are validated against the live document state and do not affect document equality, serialization, or cloning.

Changed

  • Upgraded pinned dependency versions: litellm==1.96.2, openai==2.54.0, genai-prices==0.1.2. Versions remain pinned to maintain stability and avoid occasional breaking changes and API inconsistencies observed in previous unpinned releases.
Source: README.md, updated 2026-08-13