Qualifire SDK
Example section for showcasing API endpoints
Basic
Qualifire provides an SDK to help you integrate our services into your application. The SDK is available for the following languages:
Node.js
Integrate your application with Qualifire using the Node.js SDK.
Python
Integrate your application with Qualifire using the Python SDK.
Node.js
To use the Node.js SDK, you need to install it using npm:
Then, you can use the SDK in your application:
⚠️ Note if the argument of apiKey
is not provided the SDK will look for a value in the environment variable QUALIFIRE_API_KEY
.
Working with OpenAI Objects
⚠️ Note Streams are not yet supported
Working with Text
You can also send parsed text to the SDK for evaluation
Async evaluations
In some cases we wouldn’t want to wait for the response of the evaluation,
in those cases we can use the async: true
parameter in the call.
This will log the evaluation to the web UI and trigger the evaluation in the background.
ℹ️ Note The result of the evaluation is logged in the webUI of qualifire for you to check.