mkrimmel-pplx commited on
Commit
9e47d29
·
1 Parent(s): eec040e

fix: typo in TEI snippet (#5)

Browse files

- fix: typo in TEI snippet (ea3d9bf47e5fea6d112a1bad2454fac8fcd4b2ee)
- fix: syntax errors in curl snippets (a2937d7444338c63786ae24f4d68efe2caa128ae)

Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -47,12 +47,12 @@ curl -X POST https://api.perplexity.ai/v1/embeddings \
47
  -H "Authorization: Bearer YOUR_API_KEY" \
48
  -H "Content-Type: application/json" \
49
  -d '{
50
- "texts": [
51
  "Scientists explore the universe driven by curiosity.",
52
  "Children learn through curious exploration.",
53
  "Historical discoveries began with curious questions.",
54
  "Animals use curiosity to adapt and survive.",
55
- "Philosophy examines the nature of curiosity.",
56
  ],
57
  "model": "pplx-embed-1-4B"
58
  }'
@@ -129,9 +129,9 @@ curl http://0.0.0.0:8080/embed \
129
  "Children learn through curious exploration.",
130
  "Historical discoveries began with curious questions.",
131
  "Animals use curiosity to adapt and survive.",
132
- "Philosophy examines the nature of curiosity.",
133
  ],
134
- "normalize" false
135
  }'
136
  ```
137
 
 
47
  -H "Authorization: Bearer YOUR_API_KEY" \
48
  -H "Content-Type: application/json" \
49
  -d '{
50
+ "input": [
51
  "Scientists explore the universe driven by curiosity.",
52
  "Children learn through curious exploration.",
53
  "Historical discoveries began with curious questions.",
54
  "Animals use curiosity to adapt and survive.",
55
+ "Philosophy examines the nature of curiosity."
56
  ],
57
  "model": "pplx-embed-1-4B"
58
  }'
 
129
  "Children learn through curious exploration.",
130
  "Historical discoveries began with curious questions.",
131
  "Animals use curiosity to adapt and survive.",
132
+ "Philosophy examines the nature of curiosity."
133
  ],
134
+ "normalize": false
135
  }'
136
  ```
137