Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

CPAN namespace for AI Embedding module

by 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.

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


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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11152443]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2023-09-22 15:49 GMT
Find Nodes?
    Voting Booth?

    No recent polls found