Commit 821d60a
authored
Create weaviate_example.graphql
```graphql
# Insert objects with vectors
mutation {
AddExampleCollection(id: "vector_id_1", vector: [0.1, 0.2, 0.3, ..., 0.128]) {
id
}
AddExampleCollection(id: "vector_id_2", vector: [0.2, 0.3, 0.4, ..., 0.129]) {
id
}
}
# Query vectors
{
Get {
ExampleCollection(
nearVector: {
vector: [0.1, 0.2, 0.3, ..., 0.128],
certainty: 0.7
}
) {
id
vector
}
}
}
```1 parent 41f4c54 commit 821d60a
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments