Sentence Similarity
sentence-transformers
Safetensors
qwen3
feature-extraction
dense
Generated from Trainer
dataset_size:816
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use ChenyuEcho/corruption_emaillevel_newtrainmethod with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ChenyuEcho/corruption_emaillevel_newtrainmethod with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ChenyuEcho/corruption_emaillevel_newtrainmethod") sentences = [ "Search for evidence of regulators requesting clarification on barrel aging logs for NOM-006-SCFI-2012 certification for batches 3124-A and 3125-B.", "Subject: Exciting News: New Distribution Agreement Expands Our North American Reach\nDate: 2025-08-06T16:41:00\nFrom: Thomas Tom Bradford\nParticipants: Sarah Mitchell; Kevin O'Brien; Patricia Reeves\n\nBody:\nDear Executive Team,\n\nI am pleased to announce that Agave Spirits International has finalized a new distribution agreement with Pacific Spirits Group, targeting the U.S. West Coast and Canadian markets. This partnership is expected to increase our premium product presence by at least 35% over the next fiscal year, with flagship brands such as Tequila Oro and Sierra Azul leading the portfolio. This strategic move positions us for accelerated growth and strengthens our competitive advantage in crucial markets.\n\nI will share further details during our leadership call next week. In the meantime, please begin preparing your teams to support the anticipated rollout in Q3. Your collaboration is vital to ensuring a successful launch.\n\nThank you for your continued commitment and leadership.\n\nBest regards,\nTom", "Subject: Re: Inventory Discrepancy at Tequila Distillery – Proposal to Resolve\nDate: 2025-11-21T10:30:00\nFrom: Roberto Garza\nParticipants: Carlos Delgado\n\nBody:\nHola Carlos,\n\nThank you for flagging this and for approaching it thoughtfully. I completely agree that a recount with Pedro’s team is the right step—showing transparency is key. Mañana at 10am works for me. Before we meet, could you or Pedro please pull the detailed transfer logs from the last quarter? Having those on hand will help clarify if this is a timing or recording issue. As you said, it’s likely just a minor oversight, but it's best we review all angles.\n\nLooking forward to resolving this together with cafecito—appreciate the care you both put into these matters.\n\nSaludos,\nRoberto", "Subject: Quality Certification Requirements for Recent Batches – Clarification Needed\nDate: 2025-12-01T06:07:00\nFrom: Carlos Delgado\nParticipants: Roberto Garza\n\nBody:\nHola Roberto,\n\nHope you're having a good afternoon. I wanted to touch base regarding the NOM-006-SCFI-2012 certification process for our most recent lots (especially Batch 3124-A and 3125-B). While the initial chromatographic analyses were within threshold, there were minor variances in the ester content and methanol limits. Nothing fuera de lo común, pero los reguladores have requested clarification on our barrel aging logs for these particular batches. You know, in Mexico, relationships matter, and sometimes a simple phone call or una pequeña cena can resolve these technicalities. This is how business is done here, and I’m confident our local practices meet the spirit and letter of the regulations.\n\nLet’s ensure the technical team keeps detailed test result documentation (including los controles de temperatura y humedad en la bodega). If you need my support defending our methodology, I’m happy to take the lead—nuestro equipo es lo más importante. Please advise if you need me to coordinate with external auditors or if a site visit would be beneficial.\n\nUn abrazo,\nCarlos\n\n--\nCarlos Delgado\nCountry Manager, Mexico Operations\nAgave Spirits International\nTequila, Jalisco" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 4,116 Bytes
64cd842 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | {%- if tools %}
{{- '<|im_start|>system\n' }}
{%- if messages[0].role == 'system' %}
{{- messages[0].content + '\n\n' }}
{%- endif %}
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
{%- for tool in tools %}
{{- "\n" }}
{{- tool | tojson }}
{%- endfor %}
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
{%- else %}
{%- if messages[0].role == 'system' %}
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
{%- endif %}
{%- endif %}
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
{%- for message in messages[::-1] %}
{%- set index = (messages|length - 1) - loop.index0 %}
{%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
{%- set ns.multi_step_tool = false %}
{%- set ns.last_query_index = index %}
{%- endif %}
{%- endfor %}
{%- for message in messages %}
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
{%- elif message.role == "assistant" %}
{%- set content = message.content %}
{%- set reasoning_content = '' %}
{%- if message.reasoning_content is defined and message.reasoning_content is not none %}
{%- set reasoning_content = message.reasoning_content %}
{%- else %}
{%- if '</think>' in message.content %}
{%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
{%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
{%- endif %}
{%- endif %}
{%- if loop.index0 > ns.last_query_index %}
{%- if loop.last or (not loop.last and reasoning_content) %}
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
{%- else %}
{{- '<|im_start|>' + message.role + '\n' + content }}
{%- endif %}
{%- else %}
{{- '<|im_start|>' + message.role + '\n' + content }}
{%- endif %}
{%- if message.tool_calls %}
{%- for tool_call in message.tool_calls %}
{%- if (loop.first and content) or (not loop.first) %}
{{- '\n' }}
{%- endif %}
{%- if tool_call.function %}
{%- set tool_call = tool_call.function %}
{%- endif %}
{{- '<tool_call>\n{"name": "' }}
{{- tool_call.name }}
{{- '", "arguments": ' }}
{%- if tool_call.arguments is string %}
{{- tool_call.arguments }}
{%- else %}
{{- tool_call.arguments | tojson }}
{%- endif %}
{{- '}\n</tool_call>' }}
{%- endfor %}
{%- endif %}
{{- '<|im_end|>\n' }}
{%- elif message.role == "tool" %}
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
{{- '<|im_start|>user' }}
{%- endif %}
{{- '\n<tool_response>\n' }}
{{- message.content }}
{{- '\n</tool_response>' }}
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
{{- '<|im_end|>\n' }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt %}
{{- '<|im_start|>assistant\n' }}
{%- if enable_thinking is defined and enable_thinking is false %}
{{- '<think>\n\n</think>\n\n' }}
{%- endif %}
{%- endif %} |