Commit 29b7fb0
Fix UUID validation error when indexing new documents
Passing id=None explicitly to Document() overrode Pydantic's
default_factory=uuid4, causing validation failures for new files.
Now only includes id in kwargs when existing_id is not None.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 21179aa commit 29b7fb0
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
0 commit comments