Socket
Book a DemoInstallSign in
Socket

ansible-ai-connect-chatbot

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansible-ai-connect-chatbot

## Build from source

0.1.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

Ansible AI Connect Chatbot UI

Build from source

To start building the "Chatbot" project, you're going to need:

  • node (18.20.0 was used for development)
  • npm (10.5.0 was used for development)

For installing dependencies, make sure that the current directory is the ansible_ai_connect_chatbot sub-directory first:

 cd (your_git_work_directory)/ansible-ai-connect-service/ansible_ai_connect_chatbot

and run

npm install

Available Scripts

npm start

Runs the app in the development mode. In the developing mode, the UI attempts to connect to the local chatbot service http://localhost:8080/v1/query. If you need to connect to a different URL, edit useChatbot.ts.

npm run build

Builds bundled javascript/css files.

The bundled javascript/css files are copied to ../ansible_ai_connect/main/static/chatbot and the index.html file is copied to ../ansible_ai_connect/main/templates/chatbot/.

npm run test

Executes unit tests.

npm run coverage

Executes unit tests with code coverage reports. The text version of the report is shown on the console, while the HTML version and the lcov.info file are saved in the coverage sub-directory.

Test Chatbot in Local environment

Chatbot is enabled when all of the following three parameters are defined:

  • ModelPipelineChatBot.config.inference_url URL of the chat service to be used.
  • ModelPipelineChatBot.config.model_id Default AI model. It should be one of models defined in the configuration used by the chat service.
  • CHATBOT_DEFAULT_PROVIDER Default AI model provider. It should be one of providers defined in the configuration used by the chat service.
CHATBOT_DEFAULT_PROVIDER=wisdom
{
  "ModelPipelineChatBot": {
    "config": {
      "inference_url": "http://127.0.0.1:8080",
      "model_id": "granite3-8b"
    }
  }
}

FAQs

Package last updated on 02 Apr 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.