Class: EmbeddingCreator

EmbeddingCreator(options)

Service to create and store embeddings for articles

Constructor

new EmbeddingCreator(options)

Creates a new EmbeddingCreator

.

Creates a new EmbeddingCreator

Parameters:
Name Type Description
options Object

Configuration options

Properties
Name Type Description
embeddingService EmbeddingService

The embedding service to use

sparqlService SPARQLService

The SPARQL service to use

graphName string

The graph name to work with

contentPredicate string

The predicate for content

embeddingPredicate string

The predicate for embeddings

Source:

Methods

logFinalStats()

Log final statistics

.

Log final statistics

Source:

logProgress()

Log current progress

.

Log current progress

Source:

(async) run(options) → {Promise.<Object>}

Run the embedding creation process

.

Run the embedding creation process

Parameters:
Name Type Description
options Object

Processing options

Properties
Name Type Description
limit number

Maximum number of articles to process (0 for all)

delay number

Delay between articles in ms

Source:
Returns:

The statistics from the run

Type
Promise.<Object>