diff --git a/tests/text_embedding_processor.yaml b/tests/text_embedding_processor.yaml new file mode 100644 index 00000000..e07bcca4 --- /dev/null +++ b/tests/text_embedding_processor.yaml @@ -0,0 +1,32 @@ +$schema: ../json_schemas/test_story.schema.yaml + +skip: false +description: This story tests that you can create +epilogues: + - path: /_ingest/pipeline/books_pipeline + method: DELETE + status: [200, 404] +chapters: + - synopsis: Create ingest pipeline for text embedding + path: /_ingest/pipeline/{id} + method: PUT + parameters: + id: books_pipeline + request_body: + payload: + description: "Extracts text from field and embeds it" + processors: + - text_embedding: + model_id: "text-embedding-model" + field_map: + text: "passage_embedding" + response: + status: 200 + - synopsis: Query created pipeline + path: /_ingest/pipeline/{id} + method: GET + parameters: + id: books_pipeline + response: + status: 200 +