typesense icon indicating copy to clipboard operation
typesense copied to clipboard

feat: support average embeddings of multiple ids on vector search

Open tharropoulos opened this issue 4 months ago • 0 comments

Change Summary

  • add array syntax for id parameter: vec:([], id: [doc1, doc2, doc3])
  • maintain backwards compatibility with single id syntax
  • average embeddings when multiple document ids provided
  • exclude all source documents from search results
  • validate all embeddings have same dimensions before averaging

PR Checklist

tharropoulos avatar Oct 22 '25 11:10 tharropoulos