Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:742
loss:MultipleNegativesRankingLoss
text-embeddings-inference
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
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!