Created
April 21, 2023 19:58
-
-
Save tombatron/9ca2fd9e06c24eb866aa10116a6a0cd2 to your computer and use it in GitHub Desktop.
Example Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vectorBytes = new byte[item.Features.Length * sizeof(float)]; | |
Buffer.BlockCopy(item.Features, 0, vectorBytes, 0, vectorBytes.Length); | |
db.HashSet($"Order:{item.OrderNumber}", new [] | |
{ | |
new HashEntry("order_number", item.OrderNumber), | |
new HashEntry("quote", item.Quote), | |
new HashEntry("vectorized_order", vectorBytes) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment