zpn commited on
Commit
9de69ac
·
verified ·
1 Parent(s): f326ddf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -19
README.md CHANGED
@@ -1,21 +1,21 @@
1
- ---
2
- library_name: sentence-transformers
3
- pipeline_tag: sentence-similarity
4
- tags:
5
- - sentence-transformers
6
- - sentence-similarity
7
- - feature-extraction
8
- license: apache-2.0
9
- datasets:
10
- - nomic-ai/cornstack-python-v1
11
- - nomic-ai/cornstack-javascript-v1
12
- - nomic-ai/cornstack-java-v1
13
- - nomic-ai/cornstack-go-v1
14
- - nomic-ai/cornstack-php-v1
15
- - nomic-ai/cornstack-ruby-v1
16
- base_model:
17
- - Qwen/Qwen2.5-Coder-7B-Instruct
18
- ---
19
 
20
  # Nomic Embed Code: A State-of-the-Art Code Retriever
21
 
@@ -88,7 +88,7 @@ print(similarity)
88
  ```python
89
  from sentence_transformers import SentenceTransformer
90
 
91
- queries = ['Represent this query for searching relevant code: Calculate the n-th factorial']
92
  codes = ['def fact(n):\n if n < 0:\n raise ValueError\n return 1 if n == 0 else n * fact(n - 1)']
93
 
94
  model = SentenceTransformer("nomic-ai/nomic-embed-code")
 
1
+ ---
2
+ library_name: sentence-transformers
3
+ pipeline_tag: sentence-similarity
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ license: apache-2.0
9
+ datasets:
10
+ - nomic-ai/cornstack-python-v1
11
+ - nomic-ai/cornstack-javascript-v1
12
+ - nomic-ai/cornstack-java-v1
13
+ - nomic-ai/cornstack-go-v1
14
+ - nomic-ai/cornstack-php-v1
15
+ - nomic-ai/cornstack-ruby-v1
16
+ base_model:
17
+ - Qwen/Qwen2.5-Coder-7B-Instruct
18
+ ---
19
 
20
  # Nomic Embed Code: A State-of-the-Art Code Retriever
21
 
 
88
  ```python
89
  from sentence_transformers import SentenceTransformer
90
 
91
+ queries = ['Calculate the n-th factorial']
92
  codes = ['def fact(n):\n if n < 0:\n raise ValueError\n return 1 if n == 0 else n * fact(n - 1)']
93
 
94
  model = SentenceTransformer("nomic-ai/nomic-embed-code")