@vivantel/virage-store-chromadb 0.2.22 → 0.2.23
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/query-perf.js +1 -1
- package/dist/store.js +4 -4
- package/package.json +2 -2
package/dist/query-perf.js
CHANGED
|
@@ -12,7 +12,7 @@ export async function getQueryPerfReport(collection, dimensions, timeframeHours)
|
|
|
12
12
|
let sampleEmbeddings = [];
|
|
13
13
|
try {
|
|
14
14
|
const result = await collection.get({
|
|
15
|
-
include: [IncludeEnum.
|
|
15
|
+
include: [IncludeEnum.embeddings],
|
|
16
16
|
limit: SAMPLE_COUNT,
|
|
17
17
|
});
|
|
18
18
|
if (result.embeddings && result.embeddings.length > 0) {
|
package/dist/store.js
CHANGED
|
@@ -69,7 +69,7 @@ export class ChromaVectorStore {
|
|
|
69
69
|
let offset = 0;
|
|
70
70
|
while (true) {
|
|
71
71
|
const result = await this.collection.get({
|
|
72
|
-
include: [IncludeEnum.
|
|
72
|
+
include: [IncludeEnum.metadatas],
|
|
73
73
|
limit: SCROLL_PAGE_SIZE,
|
|
74
74
|
offset,
|
|
75
75
|
});
|
|
@@ -101,9 +101,9 @@ export class ChromaVectorStore {
|
|
|
101
101
|
queryEmbeddings: [queryEmbedding],
|
|
102
102
|
nResults: topK,
|
|
103
103
|
include: [
|
|
104
|
-
IncludeEnum.
|
|
105
|
-
IncludeEnum.
|
|
106
|
-
IncludeEnum.
|
|
104
|
+
IncludeEnum.documents,
|
|
105
|
+
IncludeEnum.metadatas,
|
|
106
|
+
IncludeEnum.distances,
|
|
107
107
|
],
|
|
108
108
|
});
|
|
109
109
|
const ids = result.ids[0] ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivantel/virage-store-chromadb",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "ChromaDB vector store for @vivantel/rag-core (local or hosted)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"directory": "packages/virage-store-chromadb"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"chromadb": "^
|
|
57
|
+
"chromadb": "^3.4.3"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@vivantel/virage-core": "*"
|