All MicroEvals
Custom Date Range Embeddings
Create MicroEval
Header image for Custom Date Range Embeddings

Custom Date Range Embeddings

Prompt

Create a static c# function that accepts a start date and end date and outputs a custom vector embedding that represents the date range. The generated vector must be suitable for comparison to other date range vectors generated the same way using cosine similarity or other vector comparison algorithm. The distance/similarity of of two of the date range vectors should indicate their degree of overlap, with a 1.0 meaning the date ranges are exactly the same. If there is no overlap, then 0.