Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Overwatch886
/
bge-base-agri

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:742
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Overwatch886/bge-base-agri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Overwatch886/bge-base-agri with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Overwatch886/bge-base-agri")
    
    sentences = [
        "Represent this sentence for searching relevant passages: What fertiliser corrects zinc deficiency in maize?",
        "Crop Common bean | Country Tanzania | Title Preventing Sulphur deficiency in Common bean (Guinea savanna) | Text Sulphur deficiency in common bean (Phaseolus vulgaris). Preventing it in the Guinea savanna, with one long rainy season and moderately fertile soils: Include sulphur-bearing fertilisers in the programme and build organic matter to supply slow-release sulphur. In the Guinea savanna, time operations to the single rains, top-dress at the onset of steady rainfall, and use the long season for a full-duration variety. | Source AGRA",
        "Crop Maize | Country Kenya | Title Identifying Zinc deficiency in Maize | Text Zinc deficiency in maize (Zea mays). How to recognise it in the field: Interveinal chlorosis (yellow stripes between green veins) on the YOUNG upper leaves, shortened internodes giving a rosette or 'little-leaf' look, and in maize a broad white-to-yellow band on either side of the midrib. | Source AGRA",
        "Crop Maize | Country Ghana | Title Correcting Zinc deficiency in Maize (Highlands) | Text Zinc deficiency in maize (Zea mays). Correcting it in the cool highlands, where heavy dew and mild temperatures favour foliar fungal diseases: Apply zinc sulphate to the soil or as a 0.5% foliar spray on young plants; seed treatment with zinc also helps short-season cereals. In the highlands, the long dewy nights drive foliar disease, so prioritise resistant varieties, wider spacing for airflow, and early scouting. | Source National Extension Service"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
bge-base-agri
4.38 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Overwatch886's picture
Overwatch886
Update dense model: native CLS pooling and MNRL fine-tuning
6dccf19 verified 24 days ago
  • 1_Pooling
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • checkpoint-12
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • checkpoint-24
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • checkpoint-36
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • .gitattributes
    1.52 kB
    initial commit 25 days ago
  • README.md
    28.1 kB
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • config.json
    823 Bytes
    Add fine-tuned weights from Kaggle Models 25 days ago
  • config_sentence_transformers.json
    283 Bytes
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • model.safetensors
    438 MB
    xet
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • modules.json
    429 Bytes
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • sentence_bert_config.json
    241 Bytes
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • tokenizer.json
    712 kB
    Update dense model: native CLS pooling and MNRL fine-tuning 24 days ago
  • tokenizer_config.json
    414 Bytes
    Add fine-tuned weights from Kaggle Models 25 days ago