-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for pipeline creation with text_embedding processor
Signed-off-by: miguel-vila <[email protected]>
- Loading branch information
1 parent
eda5009
commit ee776b4
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|