🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

mongodb-chatbot-server

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-chatbot-server

Q&A server for the MongoDB Docs AI chatbot.

0.1.3
Source
npm
Version published
Maintainers
1
Created
Source

Docs Chatbot Server

Server that manages Q&A conversations for the Docs AI Chatbot.

Setup

Node

Node 18 was used to start this project. Please make sure you have Node 18 installed locally. If you have nvm, you can run nvm use to switch to the expected version of Node.

Install

Use npm v8 to install dependencies:

npm install

.env

Use the .env.example file to help configure a local .env file.

External Dependencies

The server relies on some cloud-only services:

  • The content service relies on Atlas Vector Search.
  • The llm and embeddings services rely on the OpenAI APIs.

If this is your first time setting up the server, contact a member of the development team for credentials.

Running

To start the development server, run:

npm run dev

By default, the server should be accessible through http://localhost:3000/.

Testing

Tests are ran by Jest and rely on Supertest for testing Express route logic.

To run tests, use:

npm run test

Linting & Formatting

We use eslint for linting and prettier for formatting.

To lint the code and find any warnings or errors, run:

npm run lint

To format the code, run:

npm run format

FAQs

Package last updated on 17 Oct 2023

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