Skip to content

Commit d8a709c

Browse files
authored
Merge pull request #22 from ewdlop/ewdlop-patch-18
Create weaviate_example.graphql
2 parents 41f4c54 + 821d60a commit d8a709c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Insert objects with vectors
2+
mutation {
3+
AddExampleCollection(id: "vector_id_1", vector: [0.1, 0.2, 0.3, ..., 0.128]) {
4+
id
5+
}
6+
AddExampleCollection(id: "vector_id_2", vector: [0.2, 0.3, 0.4, ..., 0.129]) {
7+
id
8+
}
9+
}
10+
11+
# Query vectors
12+
{
13+
Get {
14+
ExampleCollection(
15+
nearVector: {
16+
vector: [0.1, 0.2, 0.3, ..., 0.128],
17+
certainty: 0.7
18+
}
19+
) {
20+
id
21+
vector
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)