Repository navigation
Commit e31c0d8
Add materialization_embeddings option to materialization API (#83)
## Summary
This PR introduces a new `materialization_embeddings` option to the
materialization pipeline, allowing clients to control whether embeddings
are materialized as part of a materialization request.
## Key Changes
- **`MaterializationOptions`**: Added a new `materialization_embeddings`
boolean field (defaulting to `False`) to the options model, giving users
fine-grained control over embedding materialization behavior.
- **`MaterializeRequest`**: Extended the request model with the
corresponding `materialization_embeddings` parameter, ensuring it is
properly propagated through the request payload.
- **`MaterializationClient`**: Updated the client extension to pass the
`materialization_embeddings` option from `MaterializationOptions` into
the `MaterializeRequest` construction, wiring the full flow end-to-end.
## Breaking Changes
None. The new field defaults to `False`, preserving existing behavior
for all current consumers. This is a purely additive,
backwards-compatible change.
## Testing Notes
- Verify that existing materialization requests continue to work without
specifying the new option (default `False` behavior).
- Test that setting `materialization_embeddings=True` in
`MaterializationOptions` correctly includes the flag in the outgoing
`MaterializeRequest` payload.
- Validate the serialized request body against the expected API contract
to ensure the new field is properly included when set.
## Infrastructure Considerations
- The backend/API must already support the `materialization_embeddings`
field in the materialization endpoint; otherwise, the parameter may be
silently ignored or cause validation errors depending on the server's
strictness.
- No new dependencies or environment changes are required.
---
🤖 Generated with [Claude Code](https://claude.ai/code)
**Branch Info:**
- Source: `feature/materialize-embeddings`
- Target: `main`
- Type: feature
Co-Authored-By: Claude <noreply@anthropic.com>2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| 100 | + | |
90 | 101 | | |
91 | 102 | | |
92 | 103 | | |
0 commit comments