@things-factory/integration-qdrant 9.0.24 → 9.0.26
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/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/engine/connector/qdrant.d.ts +0 -1
- package/dist-server/engine/connector/qdrant.js +8 -9
- package/dist-server/engine/connector/qdrant.js.map +1 -1
- package/dist-server/engine/task/qdrant-fetch.js +1 -1
- package/dist-server/engine/task/qdrant-fetch.js.map +1 -1
- package/dist-server/engine/task/qdrant-search.js +1 -1
- package/dist-server/engine/task/qdrant-search.js.map +1 -1
- package/dist-server/engine/task/qdrant-upsert.js +1 -1
- package/dist-server/engine/task/qdrant-upsert.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/engine/connector/qdrant.ts +8 -8
- package/server/engine/task/qdrant-fetch.ts +1 -1
- package/server/engine/task/qdrant-search.ts +1 -1
- package/server/engine/task/qdrant-upsert.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-qdrant",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.26",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@things-factory/integration-base": "^9.0.
|
|
30
|
+
"@things-factory/integration-base": "^9.0.26"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "442a44de9da73f0c193eec7eaa972b2afb5e2293"
|
|
33
33
|
}
|
|
@@ -8,14 +8,14 @@ export class QdrantConnector implements Connector {
|
|
|
8
8
|
ConnectionManager.logger.info('Qdrant connections are ready')
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
checkConnectionInstance(domain, connectionName): boolean {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
11
|
+
// async checkConnectionInstance(domain, connectionName): Promise<boolean> {
|
|
12
|
+
// try {
|
|
13
|
+
// const connection = await ConnectionManager.getConnectionInstanceByName(domain, connectionName)
|
|
14
|
+
// return !!connection
|
|
15
|
+
// } catch (e) {
|
|
16
|
+
// return false
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
19
|
|
|
20
20
|
async connect(connection) {
|
|
21
21
|
var { endpoint } = connection
|
|
@@ -13,7 +13,7 @@ async function qdrantFetch(step, { domain, data }: Context) {
|
|
|
13
13
|
throw new Error(`Invalid or missing search results`)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const qdrantConfig = ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
16
|
+
const qdrantConfig = await ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
17
17
|
if (!qdrantConfig) {
|
|
18
18
|
throw new Error(`No connection: ${connection}`)
|
|
19
19
|
}
|
|
@@ -15,7 +15,7 @@ async function qdrantSearch(step, { domain, data }: Context) {
|
|
|
15
15
|
throw new Error(`Valid embedding vector is required for search.`)
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const qdrantConfig = ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
18
|
+
const qdrantConfig = await ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
19
19
|
if (!qdrantConfig) {
|
|
20
20
|
throw new Error(`No connection: ${connection}`)
|
|
21
21
|
}
|
|
@@ -68,7 +68,7 @@ async function qdrantUpsert(step, { domain, data }: Context) {
|
|
|
68
68
|
throw new Error('Analysis result is missing or not in correct format')
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const qdrantConfig = ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
71
|
+
const qdrantConfig = await ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
72
72
|
if (!qdrantConfig) {
|
|
73
73
|
throw new Error(`No connection: ${connection}`)
|
|
74
74
|
}
|