Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tpmkms

Package Overview
Dependencies
Maintainers
0
Versions
547
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tpmkms

Reusable libraries for Entodicton, a natural language to json converter

  • 8.0.0-beta.69
  • npm
  • Socket score

Version published
Weekly downloads
419
increased by10.55%
Maintainers
0
Weekly downloads
 
Created
Source

The Programmable Mind Knowledge Modules

This is a library of the Programmable Mind knowledge modules that can be reused.

Knowledge Modules

The list of knowledge modules can be found here

Usage

The basic usage is redefine the api functions to point to your data. Then all of the queries that are supported can be performed against your data. Here is an example of how to do that

The first step is to include the client and the knowledge module project called EKMS

const { reports } = require('tpmkms')

reports is the knowledge module for making repots off data. By default the km will work with test data. You can run it the same as any other Entodicton config. For example, this works against the shared server

reports.process('list the models').then( (response) => {
  console.log(response.generated[0])
})

The result of running this would be

dev@devlaptop:~/code/thinktelligence/kms$ node use_reports.js
╔══════════╤══════════╗
║ name     │ supplier ║
╟──────────┼──────────╢
║ tiger    │ tamiya   ║
╟──────────┼──────────╢
║ spitfire │ dragon   ║
╚══════════╧══════════╝

In order to customize the output to your domain you would need to redefine the api to access your data

const apiTemplate = (marker, testData) => {
  return {
    getName: ...
    getTypes: ...
    getAllProducts: ...
    getByTypeAndCost: ...
    productGenerator: ...
  }
}

Video showing how to use the TPMKMS package can be found here

Keywords

FAQs

Package last updated on 17 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc