From 07d3b036de430fb86935e029ca03bcf6011a02e1 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Mon, 15 Jun 2026 09:57:00 +0200 Subject: late: restore MLX device select/concat used by interaction check --- embed_mlx.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'embed_mlx.h') diff --git a/embed_mlx.h b/embed_mlx.h index c5ad70a..55f5666 100644 --- a/embed_mlx.h +++ b/embed_mlx.h @@ -97,6 +97,16 @@ EMBED_API embed_mlx_late_vectors_t *embed_mlx_late_encode_docs_device(embed_mlx_ int n_docs, int normalize, int *out_offsets); +/* Device-resident select/concat primitives, retained for the late-interaction + * verification harness (scripts/check_late_interaction.py); the server rerank + * path uses embed_mlx_late_encode_docs_device. */ +EMBED_API embed_mlx_late_vectors_t *embed_mlx_late_vectors_concat( + embed_mlx_late_ctx_t *ctx, const embed_mlx_late_vectors_t *const *items, int count); +EMBED_API embed_mlx_late_vectors_t * +embed_mlx_late_vectors_select(embed_mlx_late_ctx_t *ctx, + const embed_mlx_late_vectors_t *vecs, + const int *token_indices, + int count); EMBED_API int embed_mlx_late_maxsim_batch_device(embed_mlx_late_ctx_t *ctx, const embed_mlx_late_vectors_t *query, const embed_mlx_late_vectors_t *docs, -- cgit v1.3.1