search_records
Search a model’s published vector field by cosine similarity.
Input schema
Section titled “Input schema”{ "properties": { "application_id": { "title": "Application Id", "type": "string" }, "field": { "title": "Field", "type": "string" }, "model_id": { "title": "Model Id", "type": "string" }, "top_k": { "title": "Top K", "type": "integer" }, "vector": { "items": { "type": "number" }, "title": "Vector", "type": "array" } }, "required": [ "application_id", "model_id", "field", "vector", "top_k" ], "title": "search_recordsArguments", "type": "object"}Output schema
Section titled “Output schema”{ "properties": { "items": { "items": { "properties": { "_resolved": { "anyOf": [ { "additionalProperties": { "additionalProperties": true, "type": "object" }, "type": "object" }, { "type": "null" } ], "title": "Resolved" }, "_score": { "title": "Score", "type": "number" }, "applicationId": { "format": "uuid", "title": "Applicationid", "type": "string" }, "createdAt": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Createdat" }, "createdBy": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Createdby" }, "data": { "additionalProperties": true, "title": "Data", "type": "object" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "modelId": { "format": "uuid", "title": "Modelid", "type": "string" }, "redirect": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Redirect" }, "tenantId": { "format": "uuid", "title": "Tenantid", "type": "string" }, "updatedAt": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Updatedat" }, "workspaceId": { "format": "uuid", "title": "Workspaceid", "type": "string" } }, "required": [ "id", "tenantId", "workspaceId", "applicationId", "modelId", "data", "createdBy", "_score" ], "title": "SearchRecordResponse", "type": "object" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "SearchRecordsResponse", "type": "object"}