{"uid":"cap_JUDzhQ8keHlN5H2XmKPlz","slug":"private-vector-index-document-embedding-indexing-52f024fd","name":"Private Vector Index - Document Embedding & Indexing","description":"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.","url":"https://dev-5090-box.tailfb4c1f.ts.net/v1/index?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chunks":{"type":"number"},"points":{"type":"number"},"documents":{"type":"number"},"collection":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U1uAtwMuf8JszSMK7DKr-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Embeds and indexes documents into a private 768-dimensional cosine vector collection, returning chunk counts, token usage, and latency.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"RAG knowledge base ingestion","prompt":"Take these 10 support articles and index them into my 'support-kb' vector collection so I can do semantic search over them later — show me how many chunks and tokens were used."},{"title":"Private document store for research notes","prompt":"I have a batch of research notes I want to embed and store in a private vector index called 'research-2024'. Here are the documents with their IDs and text — please index them and tell me the latency."},{"title":"Product catalog vectorization","prompt":"Index all these product descriptions into the 'catalog' namespace as 768-dim embeddings with cosine similarity, so my agent can retrieve relevant items by meaning — give me the chunk count when done."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:36:01.738Z","isFirstParty":false,"canonicalSlug":"private-vector-index-document-embedding-indexing-52f024fd"}