chore: Revert node names changes + update new node names to correct format
This commit is contained in:
parent
7728178253
commit
6819d5f66b
|
|
@ -18,7 +18,7 @@ class ZepMemory_Memory implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Memory - Open Source'
|
this.label = 'Zep Memory - Open Source'
|
||||||
this.name = 'Zep Memory - Open Source'
|
this.name = 'ZepMemory'
|
||||||
this.version = 2.0
|
this.version = 2.0
|
||||||
this.type = 'ZepMemory'
|
this.type = 'ZepMemory'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class ZepMemoryCloud_Memory implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Memory - Cloud'
|
this.label = 'Zep Memory - Cloud'
|
||||||
this.name = 'Zep Memory - Cloud'
|
this.name = 'ZepMemoryCloud'
|
||||||
this.version = 2.0
|
this.version = 2.0
|
||||||
this.type = 'ZepMemory'
|
this.type = 'ZepMemory'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ class Zep_VectorStores implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Collection - Open Source'
|
this.label = 'Zep Collection - Open Source'
|
||||||
this.name = 'Zep Collection - Open Source'
|
this.name = 'zep'
|
||||||
this.version = 2.0
|
this.version = 2.0
|
||||||
this.type = 'Zep'
|
this.type = 'Zep'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class Zep_Existing_VectorStores implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Load Existing Index - Open Source'
|
this.label = 'Zep Load Existing Index - Open Source'
|
||||||
this.name = 'Zep Existing Index - Open Source'
|
this.name = 'zepExistingIndex'
|
||||||
this.version = 1.0
|
this.version = 1.0
|
||||||
this.type = 'Zep'
|
this.type = 'Zep'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class Zep_Upsert_VectorStores implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Upsert Document - Open Source'
|
this.label = 'Zep Upsert Document - Open Source'
|
||||||
this.name = 'Zep Upsert - Open Source'
|
this.name = 'zepUpsert'
|
||||||
this.version = 1.0
|
this.version = 1.0
|
||||||
this.type = 'Zep'
|
this.type = 'Zep'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import { ICommonObject, INode, INodeData, INodeOutputsValue, INodeParams } from
|
||||||
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
|
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
|
||||||
import { addMMRInputParams, resolveVectorStoreOrRetriever } from '../VectorStoreUtils'
|
import { addMMRInputParams, resolveVectorStoreOrRetriever } from '../VectorStoreUtils'
|
||||||
import { FakeEmbeddings } from 'langchain/embeddings/fake'
|
import { FakeEmbeddings } from 'langchain/embeddings/fake'
|
||||||
|
|
||||||
class Zep_CloudVectorStores implements INode {
|
class Zep_CloudVectorStores implements INode {
|
||||||
label: string
|
label: string
|
||||||
name: string
|
name: string
|
||||||
|
|
@ -23,7 +24,7 @@ class Zep_CloudVectorStores implements INode {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Zep Collection - Cloud'
|
this.label = 'Zep Collection - Cloud'
|
||||||
this.name = 'Zep Collection - Cloud'
|
this.name = 'zepCloud'
|
||||||
this.version = 2.0
|
this.version = 2.0
|
||||||
this.type = 'Zep'
|
this.type = 'Zep'
|
||||||
this.icon = 'zep.svg'
|
this.icon = 'zep.svg'
|
||||||
|
|
@ -100,7 +101,7 @@ class Zep_CloudVectorStores implements INode {
|
||||||
finalDocs.push(new Document(flattenDocs[i]))
|
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 = {
|
const zepConfig = {
|
||||||
apiKey: apiKey,
|
apiKey: apiKey,
|
||||||
collectionName: zepCollection,
|
collectionName: zepCollection,
|
||||||
|
|
@ -127,8 +128,7 @@ class Zep_CloudVectorStores implements INode {
|
||||||
if (zepMetadataFilter) {
|
if (zepMetadataFilter) {
|
||||||
zepConfig.filter = typeof zepMetadataFilter === 'object' ? zepMetadataFilter : JSON.parse(zepMetadataFilter)
|
zepConfig.filter = typeof zepMetadataFilter === 'object' ? zepMetadataFilter : JSON.parse(zepMetadataFilter)
|
||||||
}
|
}
|
||||||
const client = await ZepClient.init(zepConfig.apiKey, zepConfig.apiUrl)
|
zepConfig.client = await ZepClient.init(zepConfig.apiKey)
|
||||||
zepConfig.client = client
|
|
||||||
const vectorStore = await ZepExistingVS.init(zepConfig)
|
const vectorStore = await ZepExistingVS.init(zepConfig)
|
||||||
return resolveVectorStoreOrRetriever(nodeData, vectorStore)
|
return resolveVectorStoreOrRetriever(nodeData, vectorStore)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue