Update README.md to use correct config json
#2
by
senchandra
- opened
README.md
CHANGED
@@ -29,7 +29,7 @@ Simply specify the Finlang embedding during the indexing procedure for your Fina
|
|
29 |
|
30 |
```
|
31 |
from llama_index.embeddings import HuggingFaceEmbedding
|
32 |
-
embed_model = HuggingFaceEmbedding(model_name="FinLang/
|
33 |
```
|
34 |
|
35 |
|
@@ -47,7 +47,7 @@ Then you can use the model like this:
|
|
47 |
from sentence_transformers import SentenceTransformer
|
48 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
49 |
|
50 |
-
model = SentenceTransformer('FinLang/
|
51 |
embeddings = model.encode(sentences)
|
52 |
print(embeddings)
|
53 |
```
|
@@ -57,7 +57,7 @@ Example code testing:
|
|
57 |
```
|
58 |
from sentence_transformers import SentenceTransformer, util
|
59 |
|
60 |
-
model = SentenceTransformer("FinLang/
|
61 |
|
62 |
query_1 = "What is a potential concern with allowing someone else to store your cryptocurrency keys, and is it possible to decrypt a private key?"
|
63 |
query_2 = "A potential concern is that the entity holding your keys has control over your cryptocurrency in a custodial relationship. While it is theoretically possible to decrypt a private key, with current technology, it would take centuries or millennia for the 115 quattuorvigintillion possibilities. Most hacks and thefts occur in wallets, where private keys are stored."
|
|
|
29 |
|
30 |
```
|
31 |
from llama_index.embeddings import HuggingFaceEmbedding
|
32 |
+
embed_model = HuggingFaceEmbedding(model_name="FinLang/finance-embeddings-investopedia")
|
33 |
```
|
34 |
|
35 |
|
|
|
47 |
from sentence_transformers import SentenceTransformer
|
48 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
49 |
|
50 |
+
model = SentenceTransformer('FinLang/finance-embeddings-investopedia')
|
51 |
embeddings = model.encode(sentences)
|
52 |
print(embeddings)
|
53 |
```
|
|
|
57 |
```
|
58 |
from sentence_transformers import SentenceTransformer, util
|
59 |
|
60 |
+
model = SentenceTransformer("FinLang/finance-embeddings-investopedia")
|
61 |
|
62 |
query_1 = "What is a potential concern with allowing someone else to store your cryptocurrency keys, and is it possible to decrypt a private key?"
|
63 |
query_2 = "A potential concern is that the entity holding your keys has control over your cryptocurrency in a custodial relationship. While it is theoretically possible to decrypt a private key, with current technology, it would take centuries or millennia for the 115 quattuorvigintillion possibilities. Most hacks and thefts occur in wallets, where private keys are stored."
|