Closed eostis closed 1 year ago
One must provide the embedder id when there is more than one embedder.
embed(delete_me_please, "the text to embed")
I'll try to clarify the documentation.
I did it, didn't I?
"input.query(q_384)":"embed(wpsolr_multilingual_e5_small_onnx, query: parot)
Or is it related to #28159?
I did it, didn't I?
No, because that would be
"input.query(q_384)":"embed(wpsolr_multilingual_e5_small_onnx, \"query: parot\")"
It worked. 🙏
I'm keeping this open until I have managed to fix the documentation.
Try to clarify and recommend always specifying embedder id https://github.com/vespa-engine/documentation/pull/2843
1. The schema:
2. The successful query with one embedding component:
{"offset":0,"hits":20,"input.query(q_384)":"embed(wpsolr_multilingual_e5_small_onnx, query: parot)","ranking":"wpsolr_rank_vector_text","yql":"select wpsolr_id, wpsolr_PID, wpsolr_type, wpsolr_meta_type_s, wpsolr_title, wpsolr_numcomments, wpsolr_comments, wpsolr_displaydate, wpsolr_displaymodified, wpsolr_author, wpsolr_snippet_s, wpsolr_content from Vespa1 where ((wpsolr_type contains ({stem: false}\"post\")) and !(((wpsolr_post_status_s contains ({stem: false}\"draft\")) or (wpsolr_post_status_s contains ({stem: false}\"pending\")) or (wpsolr_post_status_s contains ({stem: false}\"trash\")) or (wpsolr_post_status_s contains ({stem: false}\"future\")) or (wpsolr_post_status_s contains ({stem: false}\"private\")) or (wpsolr_post_status_s contains ({stem: false}\"auto-draft\")))) and (!(!((wpsolr_is_excluded_s contains ({stem: false}\"_wpsolr_undefined\")))) or (wpsolr_is_excluded_s contains ({stem: false}\"n\"))) and ({label:'wpsolr_search_operator_nearest_neighbor_text',approximate:true,targetHits: 100}nearestNeighbor(wpsolr_field_vector_text, q_384))) | all(all(group(wpsolr_type) order(-count()) max(20) each(output(count()))))"}
3. Now, adding and deploying a second embedding component:
4. The same query, unsuccessful this time: