Voyage AI - Credentials, Embeddings and Rerank (#2015)

* Voyage AI - Credentials and Embeddings

* reranker and fixes for embeddings
This commit is contained in:
Vinod Paidimarry
2024-03-26 11:50:16 +05:30
committed by GitHub
parent 6fd0fe60fc
commit 794818b434
6 changed files with 297 additions and 0 deletions
@@ -0,0 +1,32 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class VoyageAIApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Voyage AI API'
this.name = 'voyageAIApi'
this.version = 1.0
this.description =
'Refer to <a target="_blank" href="https://docs.voyageai.com/install/#authentication-with-api-keys">official guide</a> on how to get an API Key'
this.inputs = [
{
label: 'Voyage AI Endpoint',
name: 'endpoint',
type: 'string',
default: 'https://api.voyageai.com/v1/embeddings'
},
{
label: 'Voyage AI API Key',
name: 'apiKey',
type: 'password'
}
]
}
}
module.exports = { credClass: VoyageAIApi }