Skip to content

Commit

Permalink
Add test for pipeline creation with text_embedding processor
Browse files Browse the repository at this point in the history
Signed-off-by: miguel-vila <[email protected]>
  • Loading branch information
miguel-vila committed May 31, 2024
1 parent eda5009 commit ee776b4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/text_embedding_processor.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ee776b4

Please sign in to comment.