Skip to content

Conversation

@stevebio
Copy link
Collaborator

@stevebio stevebio commented Jan 7, 2026

Add tweaked auto-generated functions and classes for optic fromDocs plan builder. Modify PlanColumnBuilder by adding PlanColumnBuilderBase to allow chaining during column definitions. This follows the patch builder pattern. Move transitiveClosure function after annTopK to match auto-generated code and make diff easier.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Copyright Validation Results
Total: 2 | Passed: 2 | Failed: 0 | Skipped: 0 | at: 2026-01-09 15:49:29 UTC | commit: 7cdc2ce

✅ Valid Files

  • lib/plan-builder-generated.js
  • test-basic/optic-fromDocs.js

✅ All files have valid copyright headers!

@stevebio stevebio force-pushed the feature/23744-implement-fromDocs branch from 103b445 to e0da9e3 Compare January 7, 2026 16:17
@stevebio stevebio force-pushed the feature/23744-implement-fromDocs branch 4 times, most recently from a671f30 to f3f1984 Compare January 8, 2026 23:57
Add tweaked auto-generated functions and classes for optic fromDocs plan builder.
Modify PlanColumnBuilder by adding PlanColumnBuilderBase to allow chaining during column definitions. This follows the patch builder pattern.
Move transitiveClosure function after annTopK to match auto-generated code and make diff easier.
@stevebio stevebio force-pushed the feature/23744-implement-fromDocs branch from f3f1984 to 7cdc2ce Compare January 9, 2026 15:49
@stevebio stevebio marked this pull request as ready for review January 9, 2026 16:58
Copilot AI review requested due to automatic review settings January 9, 2026 16:58
@stevebio
Copy link
Collaborator Author

stevebio commented Jan 9, 2026

One pattern breaker: I added "types.Node" as a new additional param type for the vector() function. This matches other functions like op.xs.decimal in that they can accept an xpath result node. This supports an optic pattern like this that seems vital for the node client within fromDocs:
...
op.vec.vector(op.xpath(op.context(), './embedding'))
...
This won't work in node unless types.Node is allowed to vector() function.
This pattern works in optic already.
Review the last test in optic-fromDocs and let me know if you think this is wrong.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

3 participants