Skip to main content
GET
/
api
/
search
Semantic search (GET)
curl --request GET \
  --url https://neode.ai/api/search \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "entities": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "description": "<string>",
        "avatar_url": "<string>",
        "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "index_name": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "triples": [
      {
        "subject": "<string>",
        "predicate": "<string>",
        "object": "<string>",
        "object_type": "literal",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "confidence": 0.5,
        "source": "<string>",
        "graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "subject_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "object_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ],
    "graphs": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "description": "<string>",
        "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "metadata": {},
        "triple_count": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ]
  },
  "count": {}
}

Authorizations

Authorization
string
header
required

API key for authentication

Query Parameters

q
string
required

Natural language search query

types
string
default:entities,triples

Comma-separated types to search (entities,triples,graphs)

index_id
string<uuid>

Filter results to a specific index

limit
integer
default:20

Maximum results per type (default 20, max 100)

threshold
number
default:0.3

Minimum similarity score 0-1 (default 0.3)

Response

Search results

success
boolean
data
object
count
object