Skip to content

Commit 6138d95

Browse files
add hybrid param to user-provided embedder examples
1 parent b81cbf7 commit 6138d95

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

learn/ai_powered_search/search_with_user_provided_embeddings.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ Once you have the query's vector, pass it to the `vector` search parameter to pe
5454
```sh
5555
curl -X POST -H 'content-type: application/json' \
5656
'localhost:7700/indexes/products/search' \
57-
--data-binary '{ "vector": [0, 1, 2] }'
57+
--data-binary '{
58+
"vector": [0, 1, 2],
59+
"hybrid": {
60+
"embedder": "image2text"
61+
}
62+
}'
5863
```
5964

6065
`vector` must be an array of numbers indicating the search vector. You must generate these yourself when using vector search with user-provided embeddings.
@@ -67,6 +72,9 @@ curl -X POST -H 'content-type: application/json' \
6772
--data-binary '{
6873
"vector": [0, 1, 2],
6974
"filter": "price < 10",
70-
"sort": ["price:asc"]
75+
"sort": ["price:asc"],
76+
"hybrid": {
77+
"embedder": "image2text"
78+
}
7179
}'
7280
```

0 commit comments

Comments
 (0)