@hazeljs/cli 0.5.2 → 0.5.3
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.
|
@@ -65,18 +65,17 @@ export class RAGService {
|
|
|
65
65
|
const queryVector = await this.embeddings.embed(query);
|
|
66
66
|
|
|
67
67
|
// Perform vector similarity search using raw SQL for cosine similarity
|
|
68
|
+
// Note: We don't select the embedding column to avoid deserialization issues
|
|
68
69
|
const results = await this.prisma.$queryRaw<Array<{
|
|
69
70
|
id: string;
|
|
70
71
|
content: string;
|
|
71
72
|
metadata: any;
|
|
72
|
-
embedding: number[];
|
|
73
73
|
similarity: number;
|
|
74
74
|
}>>`
|
|
75
75
|
SELECT
|
|
76
76
|
id,
|
|
77
77
|
content,
|
|
78
78
|
metadata,
|
|
79
|
-
embedding,
|
|
80
79
|
(1 - (embedding <=> ${queryVector}::vector)) as similarity
|
|
81
80
|
FROM documents
|
|
82
81
|
ORDER BY embedding <=> ${queryVector}::vector
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Command-line interface for scaffolding and generating HazelJS applications and components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"type": "opencollective",
|
|
71
71
|
"url": "https://opencollective.com/hazeljs"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "dd6ca4e3f2221c07b3b2c80c649ae8018b9c2526"
|
|
74
74
|
}
|