API Reference
cURL
curl --request POST \ --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/similarity-search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "Number of tokens used", "filters": [ "knowledge-base", "insights", "opportunities", "solutions" ] } '
{ "data": { "totalResults": 123, "opportunities": [ { "id": "<string>", "score": 123, "metadata": { "nodeId": "<string>", "content": "<string>" } } ], "knowledge": [ { "id": "<string>", "score": 123, "metadata": { "id": "<string>", "content": "<string>" } } ], "insights": [ { "id": "<string>", "score": 123, "metadata": { "nodeId": "<string>", "insightId": "<string>", "content": "<string>" } } ], "solutions": [ { "id": "<string>", "score": 123, "metadata": { "nodeId": "<string>", "status": "Backlog", "content": "<string>" } } ] } }
Finds similar entities to the given query
JWT authentication for organization-scoped endpoints.
Organization ID
Workspace ID
Query string
"Number of tokens used"
List of Pinecone sources to search over
knowledge-base
insights
opportunities
solutions
[ "knowledge-base", "insights", "opportunities", "solutions"]
Similarity search completed successfully
Response containing a similarity search result
Similarity search response data
Show child attributes
Was this page helpful?