We are building a Q&A model and looking for a way to rapidly generate, and subsequently annotate, new data. I believe all of the pieces are available to do so with Prodigy, but haven't quite seen a way to put them together.
Ideal use: We'd like to have a text field on the Prodigy web server where users could input a question. This text would be run through some of our code and a response would be generated dynamically. This response would be presented to the user, and the user would be able to annotate the response with a class (i.e., textcat with a numeric score) to rate the response.
I've seen that we can build custom loaders with a
while True loop (Integrating Prodigy with Custom Platform and adding raw data dynamically without restarting Server - #2 by ines) to continuously load data, but that assumes the custom loader is polling some API or database. Is it possible to add a text input on the web server that the custom loader is polling (or called on
Submit)? Otherwise it seems we need to have another web app that accepts text input from an end-user and sends it to a database, which the custom loader would be polling.
Any help is much appreciated -- thanks!