AI-Embedding

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

	  Corrected minor errors in POD including version number

1.0      9th June 2023
	  First release version
	  
	  Added acknowledgments to Ken Cotterill and Hugo van der Sanden
	  
0.1_4    8th June 2023
	  NOTE - This is still a development release - DO NOT USE IN PRODUCTION
	  
	  Corrected badly declared dependency and opted for the core JSON::PP module	  

0.1_3    8th June 2023
	  NOTE - This is still a development release - DO NOT USE IN PRODUCTION
	  
	  Changed the implementation of the 'comparator' method so it can be used multiple times
	  
	  Corrected typos in POD
	  
	  Updated POD to reflect changes
	  

MANIFEST  view on Meta::CPAN

MANIFEST			This list of files
README
t/00-load.t
t/01-openai.t
t/02-test.t
t/manifest.t
t/pod-coverage.t
t/pod.t
t/version.t
META.yml                                 Module YAML meta-data (added by MakeMaker)
META.json                                Module JSON meta-data (added by MakeMaker)

META.json  view on Meta::CPAN

      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::CosineSimilarity" : "0.02",
            "HTTP::Tiny" : "0.014",
            "JSON::PP" : "2.00",
            "perl" : "5.010"
         }
      },
      "test" : {
         "requires" : {
            "Test::More" : "0"
         }
      }
   },
   "release_status" : "stable",
   "version" : "1.11",
   "x_serialization_backend" : "JSON::PP version 4.06"
}

META.yml  view on Meta::CPAN

  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: AI-Embedding
no_index:
  directory:
    - t
    - inc
requires:
  Data::CosineSimilarity: '0.02'
  HTTP::Tiny: '0.014'
  JSON::PP: '2.00'
  perl: '5.010'
version: '1.11'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

    ABSTRACT_FROM    => 'lib/AI/Embedding.pm',
    LICENSE          => 'perl_5',
    MIN_PERL_VERSION => '5.010',
    CONFIGURE_REQUIRES => {
        'ExtUtils::MakeMaker' => '0',
    },
    TEST_REQUIRES => {
        'Test::More' => '0',
    },
    PREREQ_PM => {
        'JSON::PP'                  => '2.00',
        'HTTP::Tiny'                => '0.014',
        'Data::CosineSimilarity'    => '0.02',
    },
    dist  => { COMPRESS => q{perl -MIO::Compress::Gzip=gzip,:constants -e"my $$in = $$ARGV[0]; gzip($$in => qq($$in.gz), q(Level) => Z_BEST_COMPRESSION, q(BinModeIn) => 1) or die q(gzip failed); unlink $$in;"}, SUFFIX => 'gz', },
    clean => { FILES => 'AI-Embedding-*' },
);

# Compatibility with old versions of ExtUtils::MakeMaker
unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) {
    my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {};

lib/AI/Embedding.pm  view on Meta::CPAN

package AI::Embedding;

use strict;
use warnings;

use HTTP::Tiny;
use JSON::PP;
use Data::CosineSimilarity;

our $VERSION = '1.11';
$VERSION = eval $VERSION;

my $http = HTTP::Tiny->new;

# Create Embedding object
sub new {
    my $class = shift;



( run in 1.169 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )