SL
SemiLayer · Live Demo
ask anything. no backend.
Similar — find neighbors
Pick any row; SemiLayer returns its nearest neighbors in embedding space. Zero embedding API calls — the seed already has a stored vector. Click any result to re-seed with it and chain through the neighborhood.
The entire integration
One publishable key. That's it — copy the call into curl, any fetch, any HTTP client. The key carries scope.
POST https://api.semilayer.com/v1/similar/food_products
Authorization: Bearer pk_...
Content-Type: application/json
{
"id": "42",
"limit": 12
}What the layer is doing
Somewhere behind this page a food_products lens was declared. SemiLayer took care of understanding it, indexing it, and keeping it fresh. You get one endpoint to ask in words, another to ask in shape, a third to compose a live feed. The data never moves.
// one lens, every surface on this page.
food_products: {
facets: {
search: { fields: ['name', 'description', 'brand', 'tags'] },
similar: { fields: ['name', 'description', 'brand', 'tags'] },
feed: {
discover: { /* similarity + recency */ },
latest: { /* pure recency */ },
relatedTo: { /* recordVector seed */ },
},
},
rules: {
query: 'public',
search: 'public',
similar: 'public',
feed: { discover: 'public', latest: 'public', relatedTo: 'public' },
},
}