File tree 2 files changed +2
-20
lines changed
2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,6 @@ interface VectorizeError {
27
27
error : string ;
28
28
}
29
29
30
- /**
31
- * A pre-configured list of known models.
32
- * These can be supplied in place of configuring explicit dimensions.
33
- */
34
- type VectorizePreset =
35
- | "openapi-text-embedding-ada-002"
36
- | "workers-ai/bge-small-en"
37
- | "cohere/embed-multilingual-v2.0" ;
38
-
39
30
/**
40
31
* Supported distance metrics for an index.
41
32
* Distance metrics determine how other "similar" vectors are determined.
@@ -57,7 +48,7 @@ type VectorizeIndexConfig =
57
48
metric : VectorizeDistanceMetric ;
58
49
}
59
50
| {
60
- preset : VectorizePreset ;
51
+ preset : string ; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity
61
52
} ;
62
53
63
54
/**
Original file line number Diff line number Diff line change @@ -19,15 +19,6 @@ interface VectorizeError {
19
19
error : string ;
20
20
}
21
21
22
- /**
23
- * A pre-configured list of known models.
24
- * These can be supplied in place of configuring explicit dimensions.
25
- */
26
- type VectorizePreset =
27
- | "openapi-text-embedding-ada-002"
28
- | "workers-ai/bge-small-en"
29
- | "cohere/embed-multilingual-v2.0" ;
30
-
31
22
/**
32
23
* Supported distance metrics for an index.
33
24
* Distance metrics determine how other "similar" vectors are determined.
@@ -49,7 +40,7 @@ type VectorizeIndexConfig =
49
40
metric : VectorizeDistanceMetric ;
50
41
}
51
42
| {
52
- preset : VectorizePreset ;
43
+ preset : string ; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity
53
44
} ;
54
45
55
46
/**
You can’t perform that action at this time.
0 commit comments