diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-15 09:57:00 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-15 09:57:00 +0200 |
| commit | 07d3b036de430fb86935e029ca03bcf6011a02e1 (patch) | |
| tree | 525309d20ef18ac1f49c135dda968d779f1eae2f /embed_mlx.h | |
| parent | 43fdb308879fb0c61cb71553d9ac885c011d3a66 (diff) | |
| download | ffwd-07d3b036de430fb86935e029ca03bcf6011a02e1.tar.gz ffwd-07d3b036de430fb86935e029ca03bcf6011a02e1.zip | |
late: restore MLX device select/concat used by interaction check
Diffstat (limited to 'embed_mlx.h')
| -rw-r--r-- | embed_mlx.h | 10 |
1 files changed, 10 insertions, 0 deletions
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, |
