Socket
Socket
Sign inDemoInstall

@xapp/question-answering-handler

Package Overview
Dependencies
143
Maintainers
5
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/question-answering-handler

A question answering handler for 📣 stentor


Version published
Maintainers
5
Weekly downloads
206
decreased by-51.18%

Weekly downloads

Readme

Source

Question Answering Handler

A custom question answering handler for 📣 stentor, a framework for building conversational applications. It requires a knowledge base to be setup as part of your conversational application

What is 📣 stentor?

An Apache 2.0 licensed open source framework for building conversational applications. It supports a variety of channels, NLU, and is extensible by creating custom handlers.

What is Question Answering?

Question Answering is a Natural Language Processing (NLP) field that focuses on answering questions from a corpus of documents.

How it works?

Stentor will store all knowledgebase results on the session storage on the key knowledge_base_result. QuestionAnsweringHandler will then generate additional keys on the session from these results:

No Answer

A no answer is used when zero results exist from the knowledgebase.

Tags: KB_NO_ANSWER

AI Generated response for No Knowing

GENERATED_NO_ANSWER - We leverage generative AI to produce a no answer response.

Tags: KB_GENERATED_NO_ANSWER

List of Search Results

SEARCH_RESULTS - A list of search results typically based on keyword search

Tags: KB_LIST_OF_RESULTS

Possible Answer from Own Content

SUGGESTED_ANSWER - A possible answer from source text.

Tags: KB_SUGGESTED_ANSWER

Best Answer from the LLM's General Knowledge

GENERAL_KNOWLEDGE - An answer from general knowledge of the generative' AIs large language model.

Tags: KB_GENERAL_KNOWLEDGE

AI Answer from Owned Content

RAG_RESULT - AI Generated from search results TOP_ANSWER - AI determined, these are pulled directly from the source material and are not generated.

Tags: KB_RAG & KB_TOP_ANSWER

Best Curated Answer

TOP_FAQ - A top match within FAQs that have a human written, curated answer

Tags: KB_TOP_FAQ

FAQs

Last updated on 12 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc