You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fixed test broken due to $vector projection change
* minor collection.distinct optimzation
* minor error msg fix
* getSortVector (no documentation)
* added some documentation regarding sortVector
* updated vectorize test suite
* minor fix to vectorize tests when no params
* further refactoring of vectorize tests
* example vectorize_credentials.json file
* removed api-extractor from package.json
* added find-missing-licensing script for convenience
* tiny vectorize test + devguide updats
* dse db admin + fixed some tests (no docs)
* fixed typo in package.json script name
* minor update to list-embedding-providers script
* few internal refactors
* more minor refactors
* documentation for environments and such
* some new unit tests
* create namespace options
* fixed some documention + code issues
* made modelName not fully optional, just allowably nullish
* added doc for vectorize service
* updated cursor.getSortVector() to return null if includeSortVector !== true
* fixed a couple tests
* minor internal refactors/fixes
* added dse tests
* db admin tests
* vectorize whitelist
* few test fixes + allowed null tokens in StaticTokenProvider
* deleteAll() => deleteMany({})
* updated many examples using vector[ize] params
* some documentation and such
* couple tiny internal fixes
* example for non-astra backends
* a
* fixed couple tiny internal things
Tests can be given certain tags to allow for more granular control over which tests are run. These tags currently include:
29
40
-`[long]`/`'LONG'`: Longer running tests that take more than a few seconds to run
30
41
-`[admin]`/`'ADMIN'`: Tests that require admin permissions to run
31
42
-`[dev]`/`'DEV'`: Tests that require the dev environment to run
32
-
-`[prod]`/`'PROD'`: Tests that require the dev environment to run
43
+
-`[not-dev]`/`'NOT-DEV'`: Tests that require the dev environment to run
33
44
-`[vectorize]`/`'VECTORIZE'`: Tests that require a specific vectorize-enabled kube to run
34
45
35
46
To enable these some of these tags, you can set the corresponding environment variables to some values. The env
@@ -77,28 +88,36 @@ To run vectorize tests, you need to have a vectorize-enabled kube running, with
77
88
You must create a file, `vectorize_tests.json`, in the root folder, with the following format:
78
89
79
90
```ts
80
-
interfaceConfig {
91
+
interfaceVectorizeTestSpec {
81
92
[providerName:string]: {
82
93
apiKey?:string,
83
94
providerKey?:string,
95
+
dimension?: {
96
+
[modelNameRegex:string]:number,
97
+
},
84
98
parameters?: {
85
-
[modelName:string]:Record<string, string>
99
+
[modelNameRegex:string]:Record<string, string>
86
100
},
87
101
}
88
102
}
89
103
```
90
104
91
105
where:
92
-
-`providerName` is the name of the provider (e.g. `nvidia`, `openai`, etc.) as found in `findEmbeddingProviders`
93
-
-`apiKey` is the API key for the provider (which will be passed in through the header)
94
-
- optional if no header auth test wanted
95
-
-`providerKey` is the provider key for the provider (which will be passed in @ collection creation)
96
-
- optional if no KMS auth test wanted
97
-
-`parameters` is a mapping of model names to their corresponding parameters
106
+
-`providerName` is the name of the provider (e.g. `nvidia`, `openai`, etc.) as found in `findEmbeddingProviders`.
107
+
-`apiKey` is the API key for the provider (which will be passed in through the header) .
108
+
- optional if no header auth test wanted.
109
+
-`providerKey` is the provider key for the provider (which will be passed in @ collection creation) .
110
+
- optional if no KMS auth test wanted.
111
+
-`parameters` is a mapping of model names to their corresponding parameters. The model name can be some regex that partially matches the full model name.
112
+
-`"text-embedding-3-small"`, `"3-small"`, and `".*"` will all match `"text-embedding-3-small"`.
98
113
- optional if not required. `azureOpenAI`, for example, will need this.
114
+
-`dimension` is a also a mapping of model name regex to their corresponding dimensions, like the `parameters` field.
115
+
- optional if not required. `huggingfaceDedicated`, for example, will need this.
99
116
100
117
This file is gitignored by default and will not be checked into VCS.
101
118
119
+
See `vectorize_credentials.example.json` for—guess what—an example.
120
+
102
121
### Coverage testing
103
122
104
123
To run coverage testing, run the following command:
0 commit comments