# Private Vector Index - Document Embedding & Indexing

> Private Vector Index - Document Embedding & Indexing is a paid API for AI agents from dev-5090-box.tailfb4c1f.ts.net, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-17).

Embeds and indexes documents into a private 768-dimensional cosine vector collection, returning chunk counts, token usage, and latency.

## Facts

- Endpoint: POST https://dev-5090-box.tailfb4c1f.ts.net/v1/index?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/private-vector-index-document-embedding-indexing-52f024fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JUDzhQ8keHlN5H2XmKPlz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability private-vector-index-document-embedding-indexing-52f024fd -d '<json body>'
```

Example prompt: Embed and index these three documents into my 'product-docs' collection: {id: 'doc1', text: 'Our return policy allows 30-day returns...', metadata: {source: 'policy'}}, {id: 'doc2', text: 'Shipping takes 3-5 business days...', metadata: {source: 'shipping'}}, {id: 'doc3', text: 'Contact support at help@example.com...', metadata: {source: 'contact'}} — use cosine similarity and give me back the chunk count and token usage.

## When to prefer this

Choose this endpoint when you need to ingest documents into a private, self-hosted 768-dimensional cosine vector store — particularly when data privacy matters and you want to avoid third-party cloud vector databases. Ideal for RAG pipelines where you control the namespace and need chunk/token telemetry returned. Prefer over cloud alternatives like Pinecone or Weaviate when operating in a pay-per-call agentic workflow with x402 micropayments.

## Known failure modes

- Invalid or missing documents array — returns error if documents field is malformed
- Namespace/collection does not exist — may auto-create or return a not-found error
- Token limit exceeded — very large documents may exceed embedding model context window
- Payment failure — x402 payment not processed, returns 402 status
- Duplicate document IDs — may overwrite or error depending on collection config
- Empty text field in a document — embedding of empty string may fail or produce zero-vector

## How this service works

Embed and index documents into a private vector collection (768-dim, cosine). documents=[{id,text,metadata}], namespace picks the collection. Returns documents, chunks, tokens and latency.

## Output

Returns the number of indexed documents, total chunks created, tokens consumed during embedding, and processing latency. The documents are stored in the specified namespace/collection as 768-dimensional cosine-similarity vectors ready for semantic retrieval.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chunks": {
   "type": "number"
  },
  "points": {
   "type": "number"
  },
  "documents": {
   "type": "number"
  },
  "collection": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/private-vector-index-document-embedding-indexing-52f024fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dev-5090-box.tailfb4c1f.ts.net](https://www.zero.xyz/host/dev-5090-box.tailfb4c1f.ts.net/llms.txt)
