Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:64147
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use DannyAI/embedding_fine_tuning_with_prompts_bge_large_en_v1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DannyAI/embedding_fine_tuning_with_prompts_bge_large_en_v1.5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("DannyAI/embedding_fine_tuning_with_prompts_bge_large_en_v1.5") sentences = [ "who is the second prime minister of india", "List of Prime Ministers of India Since 1947, India has had fourteen Prime Ministers, fifteen including Gulzarilal Nanda who twice acted in the role. The first was Jawaharlal Nehru of the Indian National Congress party, who was sworn-in on 15 August 1947, when India gained independence from the British. Serving until his death in May 1964, Nehru remains India's longest-serving prime minister. He was succeeded by fellow Congressman Lal Bahadur Shastri, whose 19-month term also ended in death. Indira Gandhi, Nehru's daughter, succeeded Shastri in 1966 to become the country's first woman premier. Eleven years later, she was voted out of power in favour of the Janata Party, whose leader Morarji Desai became the first non-Congress prime minister. After he resigned in 1979, his former deputy Charan Singh briefly held office until Indira Gandhi was voted back six months later. Indira Gandhi's second stint as Prime Minister ended five years later on the morning of 31 October 1984, when she was gunned down by her own bodyguards. That evening, her son Rajiv Gandhi was sworn-in as India's youngest premier, and the third from his family. Thus far, members of Nehru–Gandhi dynasty have been Prime Minister for a total of 37 years and 303 days.[1]", "Can You Feel the Love Tonight The song was performed in the film by Kristle Edwards, Joseph Williams, Sally Dworsky, Nathan Lane, and Ernie Sabella, while the end title version was performed by Elton John. It won the 1994 Academy Award for Best Original Song,[1] and the Golden Globe Award for Best Original Song. It also earned Elton John the Grammy Award for Best Male Pop Vocal Performance.", "Sam Worthington Samuel Henry John Worthington[1] (born 2 August 1976) is an English born, Australian actor and writer. He portrayed Jake Sully in the 2009 film Avatar, Marcus Wright in Terminator Salvation, and Perseus in Clash of the Titans as well as its sequel Wrath of the Titans before transitioning to more dramatic roles in Everest (2015), Hacksaw Ridge (2016), The Shack, and Manhunt: Unabomber (both in 2017). He also played the main protagonist, Captain Alex Mason, in Call of Duty: Black Ops." ] 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!