-
Notifications
You must be signed in to change notification settings - Fork 42
/
Data.ts
99 lines (96 loc) · 2.4 KB
/
Data.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { SparseFloatVector } from "@zilliz/milvus2-sdk-node";
// build example data
export const vectorsData = [
{
vector: [
0.11878310581111173, 0.9694947902934701, 0.16443679307243175,
0.5484226189097237, 0.9839246709011924, 0.5178387104937776,
0.8716926129208069, 0.5616972243831446,
],
height: 20405,
name: 'zlnmh',
},
{
vector: [
0.9992090731236536, 0.8248790611809487, 0.8660083940881405,
0.09946359318481224, 0.6790698063908669, 0.5013786801063624,
0.795311915725105, 0.9183033261617566,
],
height: 93773,
name: '5lr9y',
},
{
vector: [
0.8761291569818763, 0.07127366044153227, 0.775648976160332,
0.5619757601304878, 0.6076543120476996, 0.8373907516027586,
0.8556140171597648, 0.4043893119391049,
],
height: 85122,
name: 'nes0j',
},
{
vector: [
0.5849602436079879, 0.5108258101682586, 0.8250884731578105,
0.7996354835509332, 0.8207766774911736, 0.38133662902290566,
0.7576720055508186, 0.4393152967662368,
],
height: 92037,
name: 'ct2li',
},
{
vector: [
0.3768133716738886, 0.3823259261020866, 0.7906232829855262,
0.31693696726284193, 0.3731715403499176, 0.3300751870649885,
0.22353556137796238, 0.38062799545615444,
],
height: 31400,
name: '6ghrg',
},
{
vector: [
0.0007531778212483964, 0.12941566118774994, 0.9340164428788116,
0.3795768837758642, 0.4532443258064389, 0.596455163143,
0.9529469158782906, 0.7692465408044873,
],
height: 1778,
name: 'sb7mt',
},
];
type sparseVectorsDataItem = {
vector: SparseFloatVector;
height: number;
name: string;
};
export const sparseVectorsData : sparseVectorsDataItem[] = [
{
"vector": {"1": 0.1, "100": 0.3, "55": 0.324},
"height": 20405,
"name": "zlnmh"
},
{
"vector": {"5": 0.45, "1234": 0.67, "789": 0.23, "456": 0.89},
"height": 93773,
"name": "5lr9y"
},
{
"vector": {"12": 0.34, "5678": 0.56, "234": 0.78, "6789": 0.12},
"height": 85122,
"name": "nes0j"
},
{
"vector": {"3": 0.67, "890": 0.45, "12345": 0.89, "678": 0.23},
"height": 92037,
"name": "ct2li"
},
{
"vector": {"45": 0.12, "678": 0.34, "2345": 0.56, "7890": 0.78},
"height": 31400,
"name": "6ghrg"
},
{
"vector": {"67": 0.45, "8901": 0.67, "123": 0.89, "4567": 0.23},
"height": 1778,
"name": "sb7mt"
}
]
;