本指南介绍了如何使用用户生成的嵌入执行 AI 驱动的搜索,而不是依赖第三方工具。
embedder
userProvided
curl \ -X PATCH 'MEILISEARCH_URL/indexes/movies/settings' \ -H 'Content-Type: application/json' \ --data-binary '{ "embedders": { "image2text": { "source": "userProvided", "dimensions": 3 } } }'
/documents
_vectors
curl -X POST -H 'content-type: application/json' \ 'localhost:7700/indexes/products/documents' \ --data-binary '[ { "id": 0, "_vectors": {"image2text": [0, 0.8, -0.2]}, "text": "frying pan" }, { "id": 1, "_vectors": {"image2text": [1, -0.2, 0]}, "text": "baking dish" } ]'
vector
curl -X POST -H 'content-type: application/json' \ 'localhost:7700/indexes/products/search' \ --data-binary '{ "vector": [0, 1, 2] }'
filter
sort
curl -X POST -H 'content-type: application/json' \ 'localhost:7700/indexes/products/search' \ --data-binary '{ "vector": [0, 1, 2], "filter": "price < 10", "sort": ["price:asc"] }'
此页面有帮助吗?