cURL
curl --request POST \ --url https://api.spikelabs.com/v1/personalities/{personality_id}/knowledge/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "limit": 5, "min_relevance": 0.7 } '
{ "data": [ { "item_id": "<string>", "chunk": "<string>", "relevance": 0.5, "item_name": "<string>" } ] }
Semantic search across a personality’s knowledge base.
API key authentication. Use your secret key (starts with sk_) as a Bearer token.
sk_
Personality ID (starts with personality_)
personality_
x <= 20
0 <= x <= 1
Search results
Show child attributes
Matching text chunk