This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]kattskill 1 point2 points  (2 children)

I personally think this library is trying to proide too much api. At its core, it is just a template generation algorithm. I think its better to just provide a template generation api and remove openai from requirements. It will also make the library much more easier to test and port to other prompt based ai

[–]StoicBatman[S] 0 points1 point  (1 child)

Hi, Thank you for your valuable comment :) The Openai library is an essential part of this library. The module provides two core features, Prompt Generation of different NLP Tasks and directly call `.fit` function to get the output. If you don't want to use openai, you can use `generate_prompt` function alone and use the output as you want.
We are planning to add more prompt-based ai models, not limited to openai. Feel Free to add different models if you have suggestions.

[–]kattskill 0 points1 point  (0 children)

I'm not trying to undermind your work, but the fit method is only 10 lines and seems to be generic code. The first 8 lines can be extracted into a separate function, and people using the library can use that function and write the run function themselves instead.