File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
216216var databaseFilter =
217217 DocumentGroundingFilter . create()
218218 .id(" " )
219219 .dataRepositoryType(DataRepositoryType . VECTOR )
220- .documentMetadata( List . of( documentMetadata) );
220+ .addDocumentMetadataItem( documentMetadata);
221221
222222var groundingConfig = Grounding . create(). filter(databaseFilter);
223223var prompt = groundingConfig. createGroundingPrompt(" What does Joule do?" );
You can’t perform that action at this time.
0 commit comments