Interface: MembershipRequest
@kortexya/reasoninglayer / MembershipRequest
Interface: MembershipRequest
Section titled “Interface: MembershipRequest”Defined in: src/types/streaming.ts:102
Body of POST /api/v1/streaming/membership — Bloom filter membership test.
Properties
Section titled “Properties”bitCount
Section titled “bitCount”bitCount:
number
Defined in: src/types/streaming.ts:108
Total bits in the filter bit-array. Must be ≥ 1. Larger values
reduce the false-positive rate. A rough rule of thumb: use
10 × |insertItems| bits for a ~1 % false-positive rate.
hashCount
Section titled “hashCount”hashCount:
number
Defined in: src/types/streaming.ts:114
Number of independent hash slots. Must be ≥ 1. The optimal value
for a given bit-count and n insertions is approximately
(bitCount / n) · ln 2.
insertItems
Section titled “insertItems”insertItems:
string[]
Defined in: src/types/streaming.ts:116
Items to insert into the filter. Maximum 1 000 000 per call.
testItems
Section titled “testItems”testItems:
string[]
Defined in: src/types/streaming.ts:118
Items to test for membership. Maximum 10 000 per call.