Skip to content

Docs(rag): SectionPlace depth and the saveChunks override contract - #2298

Merged
igordayen merged 1 commit into
mainfrom
docs/rag-section-place-contract
Nov 26, 2026
Merged

igordayen merged 1 commit into
mainfrom
docs/rag-section-place-contract

Conversation

@jasperblues

Copy link
Copy Markdown
Contributor

Closes #2297. Follow-up to #2287. Doc comments only; no code changes.

  • SectionPlace: depth and ordinal are counted from the container that sectionsInReadingOrder() was called on, not always from the document. The KDoc now matches the method's own.
  • saveChunks: spells out the requirement for overriding it. If an override skips save, onNewRetrievables has to store every chunk it is given, including chunks that failed to embed and all of them when there is no EmbeddingService. embedAndPersist already does this. Otherwise a chunk is lost without any error.

Still to do in embabel-agent-rag-neo-drivine: when GraphObjectManagerStore overrides these steps, it needs a test where some embeddings fail and no chunk is lost.

@sonarqubecloud

Copy link
Copy Markdown

@igordayen igordayen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasperblues thank you

@igordayen
igordayen merged commit ab2bf3c into main Nov 26, 2026
18 checks passed
@igordayen igordayen added this to the 1.5.5-Release🔵 milestone Nov 26, 2026
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.

RAG: tighten docs on SectionPlace depth and the saveChunks override contract (follow-up to #2287)

2 participants