English mpnet_embedding_multi_QA_v1_mpnet_asymmetric_A TFMPNetModel from flax-sentence-embeddings

Description

Pretrained mpnet model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.mpnet_embedding_multi_QA_v1_mpnet_asymmetric_A is a English model originally trained by flax-sentence-embeddings.

Download Copy S3 URICopied!

How to use


document_assembler = DocumentAssembler() \
    .setInputCol("text") \
    .setOutputCol("documents")

instruction = MPNetEmbeddings \
    .pretrained("mpnet_embedding_multi_QA_v1_mpnet_asymmetric_A", "en")\
    .setInputCols(["documents"]) \
    .setOutputCol("mpnet_embeddings")

pipeline = Pipeline(stages=[
  document_assembler,
  instruction,
])

pipelineModel = pipeline.fit(data)

pipelineDF = pipelineModel.transform(data)

Model Information

Model Name: mpnet_embedding_multi_QA_v1_mpnet_asymmetric_A
Compatibility: Spark NLP 5.1.0+
License: Open Source
Edition: Official
Input Labels: [documents]
Output Labels: [mpnet_embeddings]
Language: en
Size: 409.6 MB