Skip to content

Interface: MembershipRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Streaming / MembershipRequest

Interface: MembershipRequest

Defined in: src/types/streaming.ts:102

Body of POST /api/v1/streaming/membership — Bloom filter membership test.

Properties

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

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

insertItems: string[]

Defined in: src/types/streaming.ts:116

Items to insert into the filter. Maximum 1 000 000 per call.


testItems

testItems: string[]

Defined in: src/types/streaming.ts:118

Items to test for membership. Maximum 10 000 per call.