Skip to content

Commit bf92f74

Browse files
committed
fix: vector query description
1 parent 1196349 commit bf92f74

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dataconnect/dataconnect/connector/queries.gql

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ query ListMovies @auth(level: PUBLIC) {
1212
}
1313
}
1414

15-
query searchMovieDescriptionUsingL2Similarity1($compare: Vector!, $within: Float, $excludesContent: String, $limit: Int) @auth(level: PUBLIC) {
16-
movies_descriptionEmbedding_similarity(compare: $compare, method: L2, within: $within, where: {description: {ne: $excludesContent}}, limit: $limit) {
17-
id
18-
title
19-
description
20-
}
21-
}
2215

2316
# List subset of fields for users
2417
query ListUsers @auth(level: PUBLIC) {
@@ -572,3 +565,12 @@ query searchMovieDescriptionUsingL2Similarity($query: String!)
572565
imageUrl
573566
}
574567
}
568+
569+
# Search movie descriptions using L2 similarity with Vertex AI, with custom embeddings
570+
query searchMovieDescriptionUsingL2Similarity1($compare: Vector!, $within: Float, $excludesContent: String, $limit: Int) @auth(level: PUBLIC) {
571+
movies_descriptionEmbedding_similarity(compare: $compare, method: L2, within: $within, where: {description: {ne: $excludesContent}}, limit: $limit) {
572+
id
573+
title
574+
description
575+
}
576+
}

0 commit comments

Comments
 (0)