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.

Replies are listed 'Best First'.
Re: CPAN namespace for AI Embedding module
by GrandFather (Saint) on May 29, 2023 at 02:39 UTC

    A quick look at AI:: makes AI::Embedding seem compelling to me.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

      Thanks...

      AI::Embedding has now been uploaded to PAUSE as a developer release...