npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ractiv-update-kb-qna

v1.0.3

Published

Update QnA pairs from an excel File

Downloads

5

Readme

ractiv-update-kb-qna

Add QnA pairs in your knowledge base.

Installation

npm install ractiv-update-kb-qna

Usage

const kbUpdater = require('ractiv-update-kb-qna');

var respose = kbUpdater.updateKnowledgeBase(kbID, kbKey, kbEndpoint, filePath, qnaFileName);
// kbID: This is your Knowledge Base ID.
// kbKey: This is the authoring key for your cognitive services.
// kbEndpoint: This is the endpoint of your cognitive services.
// filePath: Path to excel file from where QnA pairs are to be picked.
//qnaFileName: This is the source name which will be updated as your file name in knowledgebase.

/*Your excel file should strictly follow the following structure:
---------------------------------------------------------------------------------------
1| Main Question        |  Alternative Phrase          |         Answer                |
---------------------------------------------------------------------------------------
2|Is this npm helpful?  | ractiv-update-kb-qna helpful?| That depends on your use case.
----------------------------------------------------------------------------------------
3|                      | first attempt on npm ?       |
----------------------------------------------------------------------------------------
4|                      | another alternative phrase?  |                   
----------------------------------------------------------------------------------------
*/

//If ran correctly you will have 3 questions updated in your KB with the same answer.
//The method also returns the response from qnAMAker that has the operation id as well.
//You can check the status of your update request with the help of operation id. 

Upcoming Features

  1. Auto formatting in answers like bullet lists and numbered lists
  2. Wait till the QnA update is succesful.

License

ISC