Index Network Documentation
  • Overview
    • What is Index Network
    • Architecture
  • Getting Started
    • Quick start
    • Data Models
  • API Reference
    • Identity
      • Authentication
      • Profile
    • Semantic Index
      • Index
        • Creator Roles
        • Privacy
      • IndexItem
      • Embedding
    • Discovery Protocol
      • Completions
      • Private Conversations
      • Semantic Listener
      • Vector Search
  • Resources
    • Libraries
      • Node.js SDK
      • Python SDK
      • React SDK
      • Langchain
  • More
    • Contact
Powered by GitBook
On this page
Edit on GitHub
  1. API Reference
  2. Discovery Protocol

Vector Search

Last updated 10 months ago

This endpoint provides a straightforward method to search for items with vector embeddings.

Vector Search

post
Body
sourcesstring[]Required

Array of source identifiers to search

vectornumber[]Optional

Vector representation for similarity search

pagenumberOptional

Page number for pagination

categoriesstring[]Optional

Array of categories to filter the search results

modelNamesstring[]Optional

Array of model names to filter the search results

Responses
200
Successful search operation
400
Invalid request parameters
500
Internal server error
post
POST /api/discovery/search HTTP/1.1
Host: dev.index.network
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "sources": [
    "text"
  ],
  "vector": [
    1
  ],
  "page": 1,
  "categories": [
    "text"
  ],
  "modelNames": [
    "text"
  ]
}

No content