![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
CPAN namespace for AI Embedding moduleby Bod (Vicar) |
on May 28, 2023 at 21:41 UTC ( #11152443=perlmeditation: print w/replies, xml ) | Need Help?? |
Wise Monks... Having written some code that uses Embeddings to compare pieces of text, I feel this would be useful to others. The Embeddings are generated from the OpenAI API at present. I plan to package this up into a module for CPAN and would like some advice on the namespace for this module... There is already OpenAI::API::Request::Embedding, which is just a thin wrapper to the API. I don't want to use the OpenAI namespace because my module will probably allow other Embedding providers to be used. For example, Hugging Face provides a cheaper but less precise Embeddings API. This may be better suited to some users. As well as providing the connection to the API, my module will also have a method to allow two pieces of text to be compared. More functionality than just a thin wrapper. I've looked at the AI namespace - e.g. AI::XGBoost. There is also Text::AI::CRM114 As my module will connect to several different API providers, I am thinking AI::Embedding might be the right name for it but I am not convinced and your opinions and advice would be greatly appreciated.
Back to
Meditations
|
|