AI & LLM
Vector Database Search Query JSON Example
A JSON example of a vector database query and response — includes the query vector, topK, metadata filter, and ranked matches with scores. Copy-ready for Pinecone, Qdrant, and pgvector.
Field Reference
matchesrequiredarray<object>Nearest-neighbour results, ordered by score descendingmatches[].idrequiredstringIdentifier of the stored vector/recordmatches[].scorerequirednumberSimilarity score (cosine/dot-product); higher means more similarmatches[].metadataoptionalobjectAttributes stored with the vector — used for display, citation, and filteringnamespaceoptionalstringLogical partition the query ran againstVariants
Query requestSearch by an embedding vector, limit results with topK, and filter on metadata.
Upsert requestInsert or update vectors with their metadata.
Common Use Cases
- →Querying a vector database for semantically similar documents
- →Powering retrieval in a RAG pipeline with metadata filtering
- →Building recommendation and deduplication features on embeddings
vector databasepineconeqdrantsemantic searchsimilarityrag
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMEmbedding Vector ResponseEmbeddings API response with the vector array, model, and usage.AI & LLMRAG Document ChunkA RAG chunk with text, source metadata, embedding reference, and relevance score.API DesignSearch API ResponseSearch API response JSON with scored hits, highlights, facets, and pagination.