chore: Revert node names changes + update new node names to correct format

This commit is contained in:
paulpaliychuk 2024-02-24 13:47:53 -05:00
parent 7728178253
commit 6819d5f66b
6 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@ class ZepMemory_Memory implements INode {
constructor() {
this.label = 'Zep Memory - Open Source'
this.name = 'Zep Memory - Open Source'
this.name = 'ZepMemory'
this.version = 2.0
this.type = 'ZepMemory'
this.icon = 'zep.svg'

View File

@ -20,7 +20,7 @@ class ZepMemoryCloud_Memory implements INode {
constructor() {
this.label = 'Zep Memory - Cloud'
this.name = 'Zep Memory - Cloud'
this.name = 'ZepMemoryCloud'
this.version = 2.0
this.type = 'ZepMemory'
this.icon = 'zep.svg'

View File

@ -23,7 +23,7 @@ class Zep_VectorStores implements INode {
constructor() {
this.label = 'Zep Collection - Open Source'
this.name = 'Zep Collection - Open Source'
this.name = 'zep'
this.version = 2.0
this.type = 'Zep'
this.icon = 'zep.svg'

View File

@ -21,7 +21,7 @@ class Zep_Existing_VectorStores implements INode {
constructor() {
this.label = 'Zep Load Existing Index - Open Source'
this.name = 'Zep Existing Index - Open Source'
this.name = 'zepExistingIndex'
this.version = 1.0
this.type = 'Zep'
this.icon = 'zep.svg'

View File

@ -21,7 +21,7 @@ class Zep_Upsert_VectorStores implements INode {
constructor() {
this.label = 'Zep Upsert Document - Open Source'
this.name = 'Zep Upsert - Open Source'
this.name = 'zepUpsert'
this.version = 1.0
this.type = 'Zep'
this.icon = 'zep.svg'

View File

@ -7,6 +7,7 @@ import { ICommonObject, INode, INodeData, INodeOutputsValue, INodeParams } from
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
import { addMMRInputParams, resolveVectorStoreOrRetriever } from '../VectorStoreUtils'
import { FakeEmbeddings } from 'langchain/embeddings/fake'
class Zep_CloudVectorStores implements INode {
label: string
name: string
@ -23,7 +24,7 @@ class Zep_CloudVectorStores implements INode {
constructor() {
this.label = 'Zep Collection - Cloud'
this.name = 'Zep Collection - Cloud'
this.name = 'zepCloud'
this.version = 2.0
this.type = 'Zep'
this.icon = 'zep.svg'
@ -100,7 +101,7 @@ class Zep_CloudVectorStores implements INode {
finalDocs.push(new Document(flattenDocs[i]))
}
}
const client = await ZepClient.init(apiKey, 'https://api.development.getzep.com')
const client = await ZepClient.init(apiKey)
const zepConfig = {
apiKey: apiKey,
collectionName: zepCollection,
@ -127,8 +128,7 @@ class Zep_CloudVectorStores implements INode {
if (zepMetadataFilter) {
zepConfig.filter = typeof zepMetadataFilter === 'object' ? zepMetadataFilter : JSON.parse(zepMetadataFilter)
}
const client = await ZepClient.init(zepConfig.apiKey, zepConfig.apiUrl)
zepConfig.client = client
zepConfig.client = await ZepClient.init(zepConfig.apiKey)
const vectorStore = await ZepExistingVS.init(zepConfig)
return resolveVectorStoreOrRetriever(nodeData, vectorStore)
}