Semantic Search
Semantic Search
Changed on| ⚠️ This endpoint is currently in BETA |
|---|
Perform an AI-powered semantic search. Use the entity-type field in the request body to specify which entity type to search. Currently only supports companies.
post/v2/semantic-search
Request
- Base URLhttps://api.affinity.co
- URLhttps://api.affinity.co/v2/semantic-search
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://login.affinity.co/auth/oauth2/authorizeToken URL: https://login.affinity.co/auth/oauth2/token scopes: api.read
Request body
Example request
{
"prompt": "Find companies like OpenAI that are based in the United States",
"limit": 10,
"entityType": "companies",
"listIds": [
1,
2
]
}Response
Created
Example response
{
"data": [
{
"id": 1,
"name": "Horizon Technologies",
"domain": "horizontech.com",
"domains": [
"horizontech.com"
],
"isGlobal": true,
"score": "0.85"
}
],
"entityType": "companies",
"explanation": "This result matched the search criteria."
}Changes
- info
the endpoint scheme security
apiKeyAuthwas added to the API - info
the endpoint scheme security
oauth2was added to the API - info
added
authenticationauthorizationbad-requestconflictmethod-not-allowednot-acceptablenot-foundnot-implementedrate-limitservertimeoutunprocessable-entityunsupported-media-typevalidationdiscriminator mapping keys to the/response property for the response status - info
added
bad-requestvalidationdiscriminator mapping keys to the/response property for the response status
- info