Try our new Claude Code Skill to automatically integrate Hyperspell into your project
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.evaluate.scoreQuery('query_id');
console.log(response.message);{
"success": true,
"message": "<string>"
}Score the result of a query.
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.evaluate.scoreQuery('query_id');
console.log(response.message);{
"success": true,
"message": "<string>"
}API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
Rating of the query result from -1 (bad) to +1 (good).
-1 <= x <= 1Was this page helpful?