Integrate off-platform applications with SGP for evaluation
prompt
and returns your external AI application’s formatted output.
metrics
to display with your outputs. These values will surface on the details page for any evaluation run you create against your uploaded outputs.
ExternalApplicationOutputContextString
ExternalApplicationOutputContextChunks
to include each piece of text as a separate Chunk
SGPClient
with your API key, and an ExternalApplication
with your external application variant ID and the interface you defined.
ExternalApplication
interface if you’ve already generated outputs for your evaluation dataset outside of the SGP SDK by creating a mapping of test case IDs to outputs, and using the batch
upload function. This is what the ExternalApplication
library class uses under the hood.
interactions.create
method. If you have additional metadata emitted by the internal building blocks of your application (like a reranking
or a completion
component), you can attach them to the interaction as trace spans
:
Applications
page by clicking on your External Application instance, and selecting Monitoring Dashboard
. From this page, you chan check out the details of your interactions, like the request latency, or the error rate. If you click on an interaction, you can also check out additional details about it, as well as the information emitted by the trace spans.