Git Product home page Git Product logo

Comments (3)

anakin87 avatar anakin87 commented on June 12, 2024 1

🤔

Thanks for reporting this. I will take a look tomorrow...

from haystack-entailment-checker.

anakin87 avatar anakin87 commented on June 12, 2024

I suggest reinstalling in a clean virtual environment.

I can't reproduce your issue.
See this notebook.

from haystack-entailment-checker.

OMGAmici avatar OMGAmici commented on June 12, 2024

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

from haystack-entailment-checker.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.