chromadb 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/app.ts +21 -0
- package/env.ts +11 -0
- package/generated/.openapi-generator/FILES +20 -0
- package/generated/.openapi-generator/VERSION +1 -0
- package/generated/.openapi-generator-ignore +23 -0
- package/generated/api/default-api.ts +1382 -0
- package/generated/api.ts +18 -0
- package/generated/base.ts +71 -0
- package/generated/common.ts +138 -0
- package/generated/configuration.ts +101 -0
- package/generated/git_push.sh +57 -0
- package/generated/index.ts +18 -0
- package/generated/models/add-embedding.ts +54 -0
- package/generated/models/create-collection.ts +36 -0
- package/generated/models/delete-embedding.ts +36 -0
- package/generated/models/get-embedding.ts +54 -0
- package/generated/models/httpvalidation-error.ts +31 -0
- package/generated/models/index.ts +10 -0
- package/generated/models/query-embedding.ts +42 -0
- package/generated/models/raw-sql.ts +30 -0
- package/generated/models/update-collection.ts +36 -0
- package/generated/models/update-embedding.ts +54 -0
- package/generated/models/validation-error.ts +42 -0
- package/index.html +16 -0
- package/openapitools.json +7 -0
- package/package.json +21 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FastAPI
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RawSql
|
|
21
|
+
*/
|
|
22
|
+
export interface RawSql {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RawSql
|
|
27
|
+
*/
|
|
28
|
+
'raw_sql'?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FastAPI
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UpdateCollection
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateCollection {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UpdateCollection
|
|
27
|
+
*/
|
|
28
|
+
'new_name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof UpdateCollection
|
|
33
|
+
*/
|
|
34
|
+
'new_metadata'?: object;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FastAPI
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UpdateEmbedding
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateEmbedding {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Array<any>}
|
|
26
|
+
* @memberof UpdateEmbedding
|
|
27
|
+
*/
|
|
28
|
+
'embeddings'?: Array<any>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<any> | object}
|
|
32
|
+
* @memberof UpdateEmbedding
|
|
33
|
+
*/
|
|
34
|
+
'metadatas'?: Array<any> | object;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string | Array<any>}
|
|
38
|
+
* @memberof UpdateEmbedding
|
|
39
|
+
*/
|
|
40
|
+
'documents'?: string | Array<any>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string | Array<any>}
|
|
44
|
+
* @memberof UpdateEmbedding
|
|
45
|
+
*/
|
|
46
|
+
'ids'?: string | Array<any>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof UpdateEmbedding
|
|
51
|
+
*/
|
|
52
|
+
'increment_index'?: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FastAPI
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ValidationError
|
|
21
|
+
*/
|
|
22
|
+
export interface ValidationError {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Array<string | number>}
|
|
26
|
+
* @memberof ValidationError
|
|
27
|
+
*/
|
|
28
|
+
'loc': Array<string | number>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ValidationError
|
|
33
|
+
*/
|
|
34
|
+
'msg': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ValidationError
|
|
39
|
+
*/
|
|
40
|
+
'type': string;
|
|
41
|
+
}
|
|
42
|
+
|
package/index.html
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>Demo App</title>
|
|
6
|
+
<script type="module" src="app.ts"></script>
|
|
7
|
+
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div>
|
|
11
|
+
<h3>List Collections</h3>
|
|
12
|
+
<div id="list-collections-result">Fetching data from server</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chromadb",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A JavaScript interface for the Chromadb",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@openapitools/openapi-generator-cli": "^2.5.2",
|
|
10
|
+
"parcel": "^2.6.0",
|
|
11
|
+
"process": "^0.11.10"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"axios": "^1.3.3"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"start": "parcel ./index.html --port 3000",
|
|
18
|
+
"genapi": "openapi-generator-cli generate -i <(curl -s 'http://localhost:8000/openapi.json') -g typescript-axios -o generated -p withSeparateModelsAndApi=true,apiPackage=api,modelPackage=models,useSingleRequestParameter=true",
|
|
19
|
+
"genapi-zsh": "mkfifo openapi.json; (curl -s 'http://localhost:8000/openapi.json' > openapi.json &) && openapi-generator-cli generate -i openapi.json -g typescript-axios -o generated --additional-properties 'withSeparateModelsAndApi=true,apiPackage=api,modelPackage=models,useSingleRequestParameter=true'; rm openapi.json"
|
|
20
|
+
}
|
|
21
|
+
}
|