avemio-digital commited on
Commit
43656ef
·
verified ·
1 Parent(s): f8fd75d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -56
README.md CHANGED
@@ -1,56 +1,55 @@
1
-
2
- ---
3
- library_name: sentence-transformers
4
- tags:
5
- - sentence-transformers
6
- - sentence-similarity
7
- - feature-extraction
8
- - autotrain
9
- base_model: BAAI/bge-m3
10
- widget:
11
- - source_sentence: 'search_query: i love autotrain'
12
- sentences:
13
- - 'search_query: huggingface auto train'
14
- - 'search_query: hugging face auto train'
15
- - 'search_query: i love autotrain'
16
- pipeline_tag: sentence-similarity
17
- datasets:
18
- - MR-Eder/embedding-triples
19
- ---
20
-
21
- # Model Trained Using AutoTrain
22
-
23
- - Problem type: Sentence Transformers
24
-
25
- ## Validation Metrics
26
- No validation metrics available
27
-
28
- ## Usage
29
-
30
- ### Direct Usage (Sentence Transformers)
31
-
32
- First install the Sentence Transformers library:
33
-
34
- ```bash
35
- pip install -U sentence-transformers
36
- ```
37
-
38
- Then you can load this model and run inference.
39
- ```python
40
- from sentence_transformers import SentenceTransformer
41
-
42
- # Download from the Hugging Face Hub
43
- model = SentenceTransformer("sentence_transformers_model_id")
44
- # Run inference
45
- sentences = [
46
- 'search_query: autotrain',
47
- 'search_query: auto train',
48
- 'search_query: i love autotrain',
49
- ]
50
- embeddings = model.encode(sentences)
51
- print(embeddings.shape)
52
-
53
- # Get the similarity scores for the embeddings
54
- similarities = model.similarity(embeddings, embeddings)
55
- print(similarities.shape)
56
- ```
 
1
+ ---
2
+ library_name: sentence-transformers
3
+ tags:
4
+ - sentence-transformers
5
+ - sentence-similarity
6
+ - feature-extraction
7
+ - autotrain
8
+ base_model: BAAI/bge-m3
9
+ widget:
10
+ - source_sentence: 'search_query: i love autotrain'
11
+ sentences:
12
+ - 'search_query: huggingface auto train'
13
+ - 'search_query: hugging face auto train'
14
+ - 'search_query: i love autotrain'
15
+ pipeline_tag: sentence-similarity
16
+ datasets:
17
+ - avemio-digital/GRAG-Embedding-Triples-Hessian-AI
18
+ ---
19
+
20
+ # Model Trained Using AutoTrain
21
+
22
+ - Problem type: Sentence Transformers
23
+
24
+ ## Validation Metrics
25
+ No validation metrics available
26
+
27
+ ## Usage
28
+
29
+ ### Direct Usage (Sentence Transformers)
30
+
31
+ First install the Sentence Transformers library:
32
+
33
+ ```bash
34
+ pip install -U sentence-transformers
35
+ ```
36
+
37
+ Then you can load this model and run inference.
38
+ ```python
39
+ from sentence_transformers import SentenceTransformer
40
+
41
+ # Download from the Hugging Face Hub
42
+ model = SentenceTransformer("sentence_transformers_model_id")
43
+ # Run inference
44
+ sentences = [
45
+ 'search_query: autotrain',
46
+ 'search_query: auto train',
47
+ 'search_query: i love autotrain',
48
+ ]
49
+ embeddings = model.encode(sentences)
50
+ print(embeddings.shape)
51
+
52
+ # Get the similarity scores for the embeddings
53
+ similarities = model.similarity(embeddings, embeddings)
54
+ print(similarities.shape)
55
+ ```