Use database as source

It seems Prodigy supports the custom loader, is there a way to use a database server as source by creating a generator? Is there a recipe available to use?

Thank you!

Hi @dna , welcome to Prodigy!

We don't have a tutorial / recipe specifically for your use-case (each one tends to be different so it's difficult to cover everything).

For what it's worth, you can check how it's done in this example that uses an API backend. If you look at the recipe.py example, the most important thing is that you define a function (in this case, get_stream) that takes in the examples you want and yields them with respect to the format of your annotation interface.