@harperfast/template-vue-studio 1.5.19 → 1.5.21
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.
|
@@ -116,7 +116,7 @@ Use this when you need to perform similarity searches on high-dimensional data,
|
|
|
116
116
|
#### How It Works
|
|
117
117
|
|
|
118
118
|
1. **Define the Vector Field**: In your GraphQL schema, define a field with a list of floats (e.g., `[Float]`).
|
|
119
|
-
2. **Apply the `@indexed` Directive**: Use the `@indexed` directive on the vector field and specify the index type as `
|
|
119
|
+
2. **Apply the `@indexed` Directive**: Use the `@indexed` directive on the vector field and specify the index type as `HNSW`.
|
|
120
120
|
3. **Configure the Index (Optional)**: You can provide additional configuration for the vector index, such as the distance metric (e.g., `cosine`, `euclidean`).
|
|
121
121
|
4. **Querying**: Use the `vector` operator in your REST or programmatic requests to perform similarity searches.
|
|
122
122
|
|
|
@@ -126,7 +126,7 @@ Use this when you need to perform similarity searches on high-dimensional data,
|
|
|
126
126
|
type Document @table @export {
|
|
127
127
|
id: ID @primaryKey
|
|
128
128
|
content: String
|
|
129
|
-
embedding: [Float] @indexed(type: "
|
|
129
|
+
embedding: [Float] @indexed(type: "HNSW")
|
|
130
130
|
}
|
|
131
131
|
```
|
|
132
132
|
|
package/config.yaml
CHANGED
|
@@ -19,9 +19,7 @@ graphqlSchema:
|
|
|
19
19
|
jsResource:
|
|
20
20
|
files: 'resources/*.js'
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
jsdoc: 'schemas/jsdocTypes.js'
|
|
25
|
-
|
|
22
|
+
# Generates jsdoc types for the schema so your code is schema-aware
|
|
23
|
+
# Bootstraps Vite to build your frontend to HTML/JS/CSS
|
|
26
24
|
'@harperfast/vite-plugin':
|
|
27
25
|
package: '@harperfast/vite-plugin'
|
package/package.json
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harperfast/template-vue-studio",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "github:HarperFast/create-harper",
|
|
6
6
|
"scripts": {},
|
|
7
|
-
"devDependencies": {
|
|
8
|
-
"@eslint/js": "^10.0.1",
|
|
9
|
-
"@harperfast/schema-codegen": "^1.0.10",
|
|
10
|
-
"@harperfast/vite-plugin": "^0.2.1",
|
|
11
|
-
"@vitejs/plugin-vue": "^6.0.5",
|
|
12
|
-
"dotenv-cli": "^11.0.0",
|
|
13
|
-
"eslint": "^10.0.2",
|
|
14
|
-
"globals": "^17.4.0",
|
|
15
|
-
"prettier": "^3.8.1",
|
|
16
|
-
"vite": "^8.0.0",
|
|
17
|
-
"vue": "^3.5.29"
|
|
18
|
-
}
|
|
7
|
+
"devDependencies": {}
|
|
19
8
|
}
|
package/skills-lock.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"harper-best-practices": {
|
|
5
5
|
"source": "harperfast/skills",
|
|
6
6
|
"sourceType": "github",
|
|
7
|
-
"computedHash": "
|
|
7
|
+
"computedHash": "52d86f4580839d4d0badcebeeda01d2aee288f2ab180260c66ae67c55b47b76f"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|