bowang0911 commited on
Commit
7abc45d
·
verified ·
1 Parent(s): cd0577b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -12
README.md CHANGED
@@ -41,8 +41,11 @@ curl -X POST https://api.perplexity.ai/v1/embeddings \
41
  -H "Content-Type: application/json" \
42
  -d '{
43
  "texts": [
44
- "What drives human curiosity?",
45
- "Curiosity is the desire to learn and understand new things"
 
 
 
46
  ],
47
  "model": "pplx-embed-1-4B"
48
  }'
@@ -86,11 +89,11 @@ model = AutoModel.from_pretrained(
86
  trust_remote_code=True
87
  )
88
  texts = [
89
- "What drives human curiosity?",
90
- "Curiosity is the desire to learn and understand new things.",
91
- "Curiosity fuels discovery and innovation across all fields.",
92
- "Scientific breakthroughs often start with a simple curious question.",
93
- "The curiosity rover explores Mars searching for signs of ancient life.",
94
  ]
95
 
96
  embeddings = model.encode(texts) # Shape: (5, 1024)
@@ -130,11 +133,11 @@ model = SentenceTransformer(
130
  )
131
 
132
  texts = [
133
- "What drives human curiosity?",
134
- "Curiosity is the desire to learn and understand new things.",
135
- "Curiosity fuels discovery and innovation across all fields.",
136
- "Scientific breakthroughs often start with a simple curious question.",
137
- "The curiosity rover explores Mars searching for signs of ancient life.",
138
  ]
139
 
140
  embeddings = model.encode(texts) # Shape: (5, 1024)
 
41
  -H "Content-Type: application/json" \
42
  -d '{
43
  "texts": [
44
+ "Scientists explore the universe driven by curiosity.",
45
+ "Children learn through curious exploration.",
46
+ "Historical discoveries began with curious questions.",
47
+ "Animals use curiosity to adapt and survive.",
48
+ "Philosophy examines the nature of curiosity.",
49
  ],
50
  "model": "pplx-embed-1-4B"
51
  }'
 
89
  trust_remote_code=True
90
  )
91
  texts = [
92
+ "Scientists explore the universe driven by curiosity.",
93
+ "Children learn through curious exploration.",
94
+ "Historical discoveries began with curious questions.",
95
+ "Animals use curiosity to adapt and survive.",
96
+ "Philosophy examines the nature of curiosity.",
97
  ]
98
 
99
  embeddings = model.encode(texts) # Shape: (5, 1024)
 
133
  )
134
 
135
  texts = [
136
+ "Scientists explore the universe driven by curiosity.",
137
+ "Children learn through curious exploration.",
138
+ "Historical discoveries began with curious questions.",
139
+ "Animals use curiosity to adapt and survive.",
140
+ "Philosophy examines the nature of curiosity.",
141
  ]
142
 
143
  embeddings = model.encode(texts) # Shape: (5, 1024)