Update README.md to use correct config json

#2
by senchandra - opened
Files changed (1) hide show
  1. README.md +3 -3
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/investopedia_embedding")
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/investopedia_embedding')
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/investopedia_embedding")
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."