Skip to content

Commit

Permalink
Update Schema for main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 2, 2023
1 parent 7e5aa6c commit 7ef06a9
Showing 1 changed file with 214 additions and 0 deletions.
214 changes: 214 additions & 0 deletions json-schema/haystack-pipeline-main.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
{
"$ref": "#/definitions/DensePassageRetrieverComponent"
},
{
"$ref": "#/definitions/DiversityRankerComponent"
},
{
"$ref": "#/definitions/Docs2AnswersComponent"
},
Expand Down Expand Up @@ -115,6 +118,9 @@
{
"$ref": "#/definitions/LinkContentFetcherComponent"
},
{
"$ref": "#/definitions/LostInTheMiddleRankerComponent"
},
{
"$ref": "#/definitions/MarkdownConverterComponent"
},
Expand Down Expand Up @@ -154,6 +160,9 @@
{
"$ref": "#/definitions/RCIReaderComponent"
},
{
"$ref": "#/definitions/RecentnessRankerComponent"
},
{
"$ref": "#/definitions/RouteDocumentsComponent"
},
Expand Down Expand Up @@ -2457,6 +2466,99 @@
],
"additionalProperties": false
},
"DiversityRankerComponent": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Custom name for the component. Helpful for visualization and debugging.",
"type": "string"
},
"type": {
"title": "Type",
"description": "Haystack Class name for the component.",
"type": "string",
"const": "DiversityRanker"
},
"params": {
"title": "Parameters",
"type": "object",
"properties": {
"model_name_or_path": {
"title": "Model Name Or Path",
"default": "all-MiniLM-L6-v2",
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"format": "path"
}
]
},
"top_k": {
"title": "Top K",
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"use_gpu": {
"title": "Use Gpu",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"devices": {
"title": "Devices",
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{}
]
}
},
{
"type": "null"
}
]
},
"similarity": {
"title": "Similarity",
"default": "dot_product",
"enum": [
"dot_product",
"cosine"
],
"type": "string"
}
},
"additionalProperties": false,
"description": "Each parameter can reference other components defined in the same YAML file."
}
},
"required": [
"type",
"name"
],
"additionalProperties": false
},
"Docs2AnswersComponent": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3675,6 +3777,57 @@
],
"additionalProperties": false
},
"LostInTheMiddleRankerComponent": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Custom name for the component. Helpful for visualization and debugging.",
"type": "string"
},
"type": {
"title": "Type",
"description": "Haystack Class name for the component.",
"type": "string",
"const": "LostInTheMiddleRanker"
},
"params": {
"title": "Parameters",
"type": "object",
"properties": {
"word_count_threshold": {
"title": "Word Count Threshold",
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"top_k": {
"title": "Top K",
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"description": "Each parameter can reference other components defined in the same YAML file."
}
},
"required": [
"type",
"name"
],
"additionalProperties": false
},
"MarkdownConverterComponent": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5324,6 +5477,67 @@
],
"additionalProperties": false
},
"RecentnessRankerComponent": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Custom name for the component. Helpful for visualization and debugging.",
"type": "string"
},
"type": {
"title": "Type",
"description": "Haystack Class name for the component.",
"type": "string",
"const": "RecentnessRanker"
},
"params": {
"title": "Parameters",
"type": "object",
"properties": {
"date_meta_field": {
"title": "Date Meta Field",
"type": "string"
},
"weight": {
"title": "Weight",
"default": 0.5,
"type": "number"
},
"top_k": {
"title": "Top K",
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"ranking_mode": {
"title": "Ranking Mode",
"default": "reciprocal_rank_fusion",
"enum": [
"reciprocal_rank_fusion",
"score"
],
"type": "string"
}
},
"required": [
"date_meta_field"
],
"additionalProperties": false,
"description": "Each parameter can reference other components defined in the same YAML file."
}
},
"required": [
"type",
"name"
],
"additionalProperties": false
},
"RouteDocumentsComponent": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 7ef06a9

Please sign in to comment.