Skip to content

Commit 8ab0ddd

Browse files
Apply suggestions from code review
Co-authored-by: Alexander Dümont <[email protected]>
1 parent d27b9e0 commit 8ab0ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ var documentMetadata =
211211
SearchDocumentKeyValueListPair.create()
212212
.key("my-collection")
213213
.value("value")
214-
.selectMode(List.of(SearchSelectOptionEnum.IGNORE_IF_KEY_ABSENT));
214+
.addSelectModeItem(SearchSelectOptionEnum.IGNORE_IF_KEY_ABSENT);
215215
// optional filter for document chunks
216216
var databaseFilter =
217217
DocumentGroundingFilter.create()
218218
.id("")
219219
.dataRepositoryType(DataRepositoryType.VECTOR)
220-
.documentMetadata(List.of(documentMetadata));
220+
.addDocumentMetadataItem(documentMetadata);
221221

222222
var groundingConfig = Grounding.create().filter(databaseFilter);
223223
var prompt = groundingConfig.createGroundingPrompt("What does Joule do?");

0 commit comments

Comments
 (0)