From the Node.js SDK it is possible to send server side the explicit user actions and feedback to the Nebuly platform.
An example of these actions might be thumbs_up, thumbs_down, copy_input, copy_output.
To get send the feedback actions to the nebuly platform, you need to create an instance of the NebulySdk
client. You need to pass your Nebuly API key as a parameter.
You can also provide the Nebuly API key in an environment variable
NEBULY_API_KEY and it will be automatically detected.
Copy
Ask AI
import { NebulySdk } from "@nebuly-ai/nebuly-js-sdk"const nebulySdk = new NebulySdk('NEBULY_API_KEY');nebulySdk.sendFeedbackAction( { slug: "thumbs_up", text: "Comment for a thumbs up" }, { input: 'The input of the LLM system', output: 'The output of the LLM system', end_user: '<YOUR_USER_ID>' },);