Skip to content

Commit 821d60a

Browse files
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

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)