@@ -194,7 +194,6 @@ public Builder similarityThresholdAll() {
194
194
/**
195
195
* Retrieves documents by query embedding similarity and matching the filters.
196
196
* Value of 'null' means that no metadata filters will be applied to the search.
197
- * <p>
198
197
* For example if the {@link Document#getMetadata()} schema is:
199
198
*
200
199
* <pre>{@code
@@ -206,7 +205,7 @@ public Builder similarityThresholdAll() {
206
205
* "isActive": <Boolean>
207
206
* }
208
207
* }</pre>
209
- * <p>
208
+ *
210
209
* you can constrain the search result to only UK countries with isActive=true and
211
210
* year equal or greater 2020. You can build this such metadata filter
212
211
* programmatically like this:
@@ -218,10 +217,10 @@ public Builder similarityThresholdAll() {
218
217
* new Expression(GTE, new Key("year"), new Value(2020)),
219
218
* new Expression(EQ, new Key("isActive"), new Value(true))));
220
219
* }</pre>
221
- * <p>
220
+ *
222
221
* The {@link Filter.Expression} is portable across all vector stores.<br/>
223
- * <p>
224
- * <p>
222
+ *
223
+ *
225
224
* The {@link FilterExpressionBuilder} is a DSL creating expressions
226
225
* programmatically:
227
226
*
@@ -233,7 +232,7 @@ public Builder similarityThresholdAll() {
233
232
* b.gte("year", 2020),
234
233
* b.eq("isActive", true)));
235
234
* }</pre>
236
- * <p>
235
+ *
237
236
* The {@link FilterExpressionTextParser} converts textual, SQL like filter
238
237
* expression language into {@link Filter.Expression}:
239
238
*
@@ -263,21 +262,21 @@ public Builder filterExpression(@Nullable Filter.Expression expression) {
263
262
* "isActive": <Boolean>
264
263
* }
265
264
* }</pre>
266
- * <p>
265
+ *
267
266
* then you can constrain the search result with metadata filter expressions like:
268
267
*
269
268
* <pre>{@code
270
269
* country == 'UK' && year >= 2020 && isActive == true
271
270
* Or
272
271
* country == 'BG' && (city NOT IN ['Sofia', 'Plovdiv'] || price < 134.34)
273
272
* }</pre>
274
- * <p>
273
+ *
275
274
* This ensures that the response contains only embeddings that match the
276
275
* specified filer criteria. <br/>
277
- * <p>
276
+ *
278
277
* The declarative, SQL like, filter syntax is portable across all vector stores
279
278
* supporting the filter search feature.<br/>
280
- * <p>
279
+ *
281
280
* The {@link FilterExpressionTextParser} is used to convert the text filter
282
281
* expression into {@link Filter.Expression}.
283
282
* @param textExpression declarative, portable, SQL like, metadata filter syntax.
0 commit comments