Skip to content

A npm module for generating knowledge taxonomy , summary and cards for only ever

Notifications You must be signed in to change notification settings

OnlyEver/only_ever_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a NPM package that handles the all the ai generation for _source on OnlyEver. The Generation includes, Knowledge Taxonomy , Summary and Test Cards data for the _source.

The class [OnlyEverGenerator] is the Entry point for the generation module it has two required fields, [api_key] which is open ai token [model] open ai model : 'gpt-3.5-turbo-1106' [content] source content : Array

The [OnlyEverGenerator] currently exposes a main method, [generate] which handles all types of generation and takes a Param

generate(generate_typology = false,generate_card = false) method takes two args, generate_typology and generate_cards, which are both boolean.
For Eg: 
let oeGenerator = new OnlyEverGenerator(
    api_key,
    model,
    [Block1,Block2,Block3], // oe content model
);
 

let responsesArray = await oeGenerator.generate(true,true);


Exposed a new method ```gapFill``` from OnlyEverGenerator


  async gapFill(factsMaps: any, aiCards: Array<any>) {}
    /// factsmap 
    /// {
    /// remaining_facts: [],
     /// remaining_concepts: [],
    //}

    /// aicards is array of ai cards

About

A npm module for generating knowledge taxonomy , summary and cards for only ever

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published