Perplexity Embed
perplexity_embedIndex saved chats, completed research reports, or texts as vectors and search them by meaning; vectors stay local per project.
Instructions
Index your saved chats, completed research reports or texts as vectors and search them
by meaning. index SENDS the text it indexes to Perplexity (search sends only the query);
vectors are stored locally per project and are never returned. Prices per million tokens:
$0.004 for pplx-embed-v1-0.6b, $0.03 for pplx-embed-v1-4b (the reported cost is
recorded; see perplexity_usage). An unchanged item is never embedded twice; index stops
after about limit new chunks and reports remaining, so call it again until 0. status
shows what is stored and what is not; delete removes vectors (confirm true). Deleting a
chat or a project removes its vectors.
Details: call perplexity_help.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | index of source text: 1 to 100 items {key, text}; a key indexed again with new text replaces its chunks | |
| limit | No | index: stop after the item reaching this many new chunks (1-2048) | |
| model | No | pplx-embed-v1-0.6b (default) or pplx-embed-v1-4b; omitted on delete means every model | |
| query | No | search: the text to look for (at most 4000 characters) | |
| top_k | No | search: results, 1 to 20 | |
| action | Yes | index, search, status or delete | |
| source | No | chat (saved chat messages), job (completed research reports) or text (your items). Required for index; filters search and delete | |
| confirm | No | delete: must be true | |
| project | No | Project the vectors belong to (default: default) | |
| encoding | No | int8 (default) or binary (8x smaller); omitted on delete: both | |
| min_score | No | search: only scores at or above this, -1 to 1 | |
| dimensions | No | Vector size, a multiple of 8: 128 to 1024 (0.6b) or 2560 (4b); omitted is the model's full size (omitted on delete: every size) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | No | search: best chunks first | |
| action | Yes | index, search, status or delete | |
| groups | No | status: stored chunks per combination | |
| project | Yes | The project the call used | |
| removed | No | delete: chunks removed | |
| cost_usd | No | index, search: exact USD cost as a decimal string | |
| requests | No | index, search: upstream requests | |
| warnings | Yes | Things worth knowing about this result | |
| remaining | No | index: pending chunks left | |
| candidates | No | search: stored chunks compared | |
| latency_ms | No | Measured wall time of the upstream calls | |
| cost_source | No | reported, computed, mixed or none (unknown) | |
| input_tokens | No | index, search: tokens billed | |
| skipped_items | No | index: items unchanged or gone during the call | |
| unindexed_job | No | status: completed jobs left | |
| embedded_items | No | index: items stored | |
| unindexed_chat | No | status: chat messages left | |
| embedded_chunks | No | index: chunks stored | |
| calls_cost_unknown | No | requests with unknown cost |