namespace ZB.MOM.WW.CBDD.Core.Indexing; public static class VectorSearchExtensions { /// /// Performs a similarity search on a vector property. /// This method is a marker for the LINQ query provider and is optimized using HNSW indexes if available. /// /// The vector property of the entity. /// The query vector to compare against. /// Number of nearest neighbors to return. /// /// True if the document is part of the top-k results (always returns true when evaluated in memory for /// compilation purposes). /// public static bool VectorSearch(this float[] vector, float[] query, int k) { return true; } /// /// Performs a similarity search on a collection of vector properties. /// Used for entities with multiple vectors per document. /// /// The vector collection of the entity. /// The query vector to compare against. /// Number of nearest neighbors to return. /// /// True if the document is part of the top-k results (always returns true when evaluated in memory for /// compilation purposes). /// public static bool VectorSearch(this IEnumerable vectors, float[] query, int k) { return true; } }