@Test
    public void embeddingSingleValueToRank3CausesException() {
        try {
            var tester = new EmbeddingScriptTester(Map.of("emb1", new EmbeddingScriptTester.MockMappedEmbedder("myDocument.my2DSparseTensor")));

            SimpleTestAdapter adapter = new SimpleTestAdapter();
            adapter.createField(new Field("text", DataType.STRING));
            adapter.createField(new Field("text_embeddings", new TensorDataType(TensorType.fromSpec("tensor<float>(chunk{},token{},x[768])"))));

            var expression = tester.expressionFrom("input text | embed emb1 chunk | attribute text_embeddings");
            expression.resolve(adapter);
            fail();
        }
        catch (VerificationException expected) {
            assertEquals("Invalid expression 'embed emb1 chunk': Input is a string, so output must be a rank 1 tensor, or a rank 2 tensor with one mapped dimension, but got tensor<float>(chunk{},token{},x[768])",
                         expected.getMessage());
        }
    }
Multiple paragraphs with sparse encoding (splade style)
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/EmbeddingScriptTestCase.java