Class: SearchServer

SearchServer(options)

Search server application

Constructor

new SearchServer(options)

Creates a new SearchServer

.

Creates a new SearchServer

Parameters:
Name Type Description
options Object

Configuration options

Properties
Name Type Description
port number

The port to listen on

graphName string

The graph name to search in

Source:

Methods

configureApp()

Configure the Express app

.

Configure the Express app

Source:

(async) createEmbeddingConnector()

Create embedding connector using factory

.

Create embedding connector using factory

Source:

(async) handleSearch(req, res)

Handle search API requests

.

Handle search API requests

Parameters:
Name Type Description
req Request

The Express request

res Response

The Express response

Source:

(async) initializeChatFeatures()

Initialize chat features and register API

.

Initialize chat features and register API

Source:

(async) start() → {Promise.<void>}

Start the server

.

Start the server

Source:
Returns:
Type
Promise.<void>

(async) stop() → {Promise.<void>}

Stop the server

.

Stop the server

Source:
Returns:
Type
Promise.<void>