Skip to content

Commit 57eae14

Browse files
committed
undo doc changes
1 parent 10274e0 commit 57eae14

1 file changed

Lines changed: 1 addition & 30 deletions

File tree

fern/pages/cpp_api/cpp-api-neighbors-common.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ Filtering for ANN Types
147147
enum class FilterType {
148148
None,
149149
Bitmap,
150-
Bitset,
151-
UDF
150+
Bitset
152151
};
153152
```
154153

@@ -159,7 +158,6 @@ enum class FilterType {
159158
| `None` | `` |
160159
| `Bitmap` | `` |
161160
| `Bitset` | `` |
162-
| `UDF` | `` |
163161

164162
<a id="neighbors-filtering-none-sample-filter-operator"></a>
165163
### neighbors::filtering::none_sample_filter::operator
@@ -320,33 +318,6 @@ FilterType get_filter_type() const override;
320318

321319
[`FilterType`](/api-reference/cpp-api-neighbors-common#neighbors-filtering-filtertype)
322320

323-
<a id="neighbors-filtering-udf-filter"></a>
324-
### neighbors::filtering::udf_filter
325-
326-
JIT-LTO user-defined filter predicate.
327-
328-
The source must define a device function named by `function_name` with signature:
329-
330-
Return `true` to allow a source vector to appear in the results and `false` to reject it. UDF dereferences it. CAGRA currently provides `source_index_t` as `uint32_t` in the generated JIT fragment.
331-
332-
```cpp
333-
struct udf_filter : public base_filter {
334-
std::string source;
335-
void* filter_data;
336-
float filtering_rate;
337-
std::string function_name;
338-
};
339-
```
340-
341-
**Fields**
342-
343-
| Name | Type | Description |
344-
| --- | --- | --- |
345-
| `source` | `std::string` | CUDA C++ source containing the device predicate. |
346-
| `filter_data` | `void*` | Opaque device-accessible pointer passed to the predicate. |
347-
| `filtering_rate` | `float` | Estimated fraction of rows rejected by the predicate, or negative if unknown. |
348-
| `function_name` | `std::string` | Device function name to call from the generated CAGRA sample filter. |
349-
350321
## ANN MG index build parameters
351322

352323
<a id="neighbors-distribution-mode"></a>

0 commit comments

Comments
 (0)