@Test
    public void testArrayEmbedTo3dMixedTensor_missingDimensionArgument() {
        var tester = new EmbeddingScriptTester(Map.of("emb1", new EmbeddingScriptTester.MockMixedEmbedder("myDocument.mySparseTensor")));

        TensorType tensorType = TensorType.fromSpec("tensor(passage{}, token{}, d[3])");
        var expression = tester.expressionFrom("input myTextArray | embed emb1 | attribute 'mySparseTensor'");

        SimpleTestAdapter adapter = new SimpleTestAdapter();
        adapter.createField(new Field("myTextArray", new ArrayDataType(DataType.STRING)));
        adapter.createField(new Field("mySparseTensor", new TensorDataType(tensorType)));

        try {
            expression.resolve(new TypeContext(adapter));
            fail("Expected exception");
        } catch (VerificationException e) {
            assertEquals("Invalid expression 'embed emb1': When the embedding target field is a 3d tensor the name of the tensor dimension that corresponds to the input array elements must be given as a second argument to embed, e.g: ... | embed colbert paragraph | ...",
                         e.getMessage());
        }
    }
Multiple paragraphs, and each paragraph leading to multiple vectors (ColBERT style)
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/EmbeddingScriptTestCase.java