Open OMGAmici opened 11 months ago
🤔
Thanks for reporting this. I will take a look tomorrow...
I suggest reinstalling in a clean virtual environment.
I can't reproduce your issue. See this notebook.
Thank you! I got the library dependency resolved.
Should the EntailmentChecker be compatible with a Haystack pipeline set up in a yaml file?
jsonschema.exceptions.ValidationError: {'name': 'NLI', 'type': 'EntailmentChecker', 'params': {'model_name_or_path': 'microsoft/deberta-v2-xlarge-mnli', 'use_gpu': True, 'entailment_contradiction_threshold': 0.5}} is not valid under any of the given schemas
Failed validating 'anyOf' in schema['properties']['components']['items']:
{'anyOf': [{'$ref': '#/definitions/DeepsetCloudDocumentStoreComponent'},
{'$ref': '#/definitions/ElasticsearchDocumentStoreComponent'},
{'$ref': '#/definitions/FAISSDocumentStoreComponent'},
{'$ref': '#/definitions/InMemoryDocumentStoreComponent'},
{'$ref': '#/definitions/OpenSearchDocumentStoreComponent'},
{'$ref': '#/definitions/PineconeDocumentStoreComponent'},
{'$ref': '#/definitions/SQLDocumentStoreComponent'},
{'$ref': '#/definitions/WeaviateDocumentStoreComponent'},
{'$ref': '#/definitions/AnswerParserComponent'},
{'$ref': '#/definitions/AzureConverterComponent'},
{'$ref': '#/definitions/BM25RetrieverComponent'},
{'$ref': '#/definitions/BaseOutputParserComponent'},
{'$ref': '#/definitions/CohereRankerComponent'},
{'$ref': '#/definitions/CrawlerComponent'},
{'$ref': '#/definitions/CsvTextConverterComponent'},
{'$ref': '#/definitions/DensePassageRetrieverComponent'},
{'$ref': '#/definitions/DiversityRankerComponent'},
{'$ref': '#/definitions/Docs2AnswersComponent'},
{'$ref': '#/definitions/DocumentMergerComponent'},
{'$ref': '#/definitions/DocxToTextConverterComponent'},
{'$ref': '#/definitions/EmbeddingRetrieverComponent'},
{'$ref': '#/definitions/EntityExtractorComponent'},
{'$ref': '#/definitions/FARMReaderComponent'},
{'$ref': '#/definitions/FileTypeClassifierComponent'},
{'$ref': '#/definitions/FilterRetrieverComponent'},
{'$ref': '#/definitions/ImageToTextConverterComponent'},
{'$ref': '#/definitions/JoinAnswersComponent'},
{'$ref': '#/definitions/JoinDocumentsComponent'},
{'$ref': '#/definitions/JsonConverterComponent'},
{'$ref': '#/definitions/LangdetectDocumentLanguageClassifierComponent'},
{'$ref': '#/definitions/LinkContentFetcherComponent'},
{'$ref': '#/definitions/LostInTheMiddleRankerComponent'},
{'$ref': '#/definitions/MarkdownConverterComponent'},
{'$ref': '#/definitions/MultiModalRetrieverComponent'},
{'$ref': '#/definitions/MultihopEmbeddingRetrieverComponent'},
{'$ref': '#/definitions/PDFToTextConverterComponent'},
{'$ref': '#/definitions/ParsrConverterComponent'},
{'$ref': '#/definitions/PptxConverterComponent'},
{'$ref': '#/definitions/PreProcessorComponent'},
{'$ref': '#/definitions/PromptModelComponent'},
{'$ref': '#/definitions/PromptNodeComponent'},
{'$ref': '#/definitions/PromptTemplateComponent'},
{'$ref': '#/definitions/PseudoLabelGeneratorComponent'},
{'$ref': '#/definitions/QuestionGeneratorComponent'},
{'$ref': '#/definitions/RCIReaderComponent'},
{'$ref': '#/definitions/RecentnessRankerComponent'},
{'$ref': '#/definitions/RouteDocumentsComponent'},
{'$ref': '#/definitions/SentenceTransformersRankerComponent'},
{'$ref': '#/definitions/ShaperComponent'},
{'$ref': '#/definitions/TableReaderComponent'},
{'$ref': '#/definitions/TableTextRetrieverComponent'},
{'$ref': '#/definitions/TextConverterComponent'},
{'$ref': '#/definitions/TfidfRetrieverComponent'},
{'$ref': '#/definitions/TikaConverterComponent'},
{'$ref': '#/definitions/TopPSamplerComponent'},
{'$ref': '#/definitions/TransformersDocumentClassifierComponent'},
{'$ref': '#/definitions/TransformersDocumentLanguageClassifierComponent'},
{'$ref': '#/definitions/TransformersImageToTextComponent'},
{'$ref': '#/definitions/TransformersQueryClassifierComponent'},
{'$ref': '#/definitions/TransformersReaderComponent'},
{'$ref': '#/definitions/TransformersSummarizerComponent'},
{'$ref': '#/definitions/TransformersTranslatorComponent'},
{'$ref': '#/definitions/WebRetrieverComponent'},
{'$ref': '#/definitions/WebSearchComponent'},
{'$ref': '#/definitions/WhisperTranscriberComponent'}]}
On instance['components'][3]:
{'name': 'NLI',
'params': {'entailment_contradiction_threshold': 0.5,
'model_name_or_path': 'microsoft/deberta-v2-xlarge-mnli',
'use_gpu': True},
'type': 'EntailmentChecker'}
File "/home/dev/g3/g3_2/lib/python3.8/site-packages/haystack/nodes/base.py", line 121, in get_subclass
raise PipelineSchemaError(
haystack.errors.PipelineSchemaError: Haystack component with the name 'EntailmentChecker' not found. Check the class name of your component for spelling mistakes and make sure you installed Haystack with the proper extras: https://docs.haystack.deepset.ai/docs/installation#custom-installation
Hi there!
I am running the latest version of Haystack 1.23.0 and tried installing this custom node to use as part of a pipeline.
It seems, however, that there is a version conflict with one of the libraries.
Stack trace with the main error at the bottom: