bugfix/VectorStore-BaseClasses

This commit is contained in:
Henry 2023-04-13 23:46:17 +01:00
parent 81be7d3f1d
commit 140b3cd2a2
5 changed files with 5 additions and 9 deletions

View File

@ -1,7 +1,6 @@
import { INode, INodeData, INodeParams } from '../../../src/Interface' import { INode, INodeData, INodeParams } from '../../../src/Interface'
import { Chroma } from 'langchain/vectorstores/chroma' import { Chroma } from 'langchain/vectorstores/chroma'
import { Embeddings } from 'langchain/embeddings/base' import { Embeddings } from 'langchain/embeddings/base'
import { getBaseClasses } from '../../../src/utils'
class Chroma_Existing_VectorStores implements INode { class Chroma_Existing_VectorStores implements INode {
label: string label: string
@ -20,7 +19,7 @@ class Chroma_Existing_VectorStores implements INode {
this.icon = 'chroma.svg' this.icon = 'chroma.svg'
this.category = 'Vector Stores' this.category = 'Vector Stores'
this.description = 'Load existing index from Chroma (i.e: Document has been upserted)' this.description = 'Load existing index from Chroma (i.e: Document has been upserted)'
this.baseClasses = [this.type, ...getBaseClasses(Chroma)] this.baseClasses = [this.type, 'BaseRetriever']
this.inputs = [ this.inputs = [
{ {
label: 'Embeddings', label: 'Embeddings',

View File

@ -2,7 +2,6 @@ import { INode, INodeData, INodeParams } from '../../../src/Interface'
import { Chroma } from 'langchain/vectorstores/chroma' import { Chroma } from 'langchain/vectorstores/chroma'
import { Embeddings } from 'langchain/embeddings/base' import { Embeddings } from 'langchain/embeddings/base'
import { Document } from 'langchain/document' import { Document } from 'langchain/document'
import { getBaseClasses } from '../../../src/utils'
class ChromaUpsert_VectorStores implements INode { class ChromaUpsert_VectorStores implements INode {
label: string label: string
@ -21,7 +20,7 @@ class ChromaUpsert_VectorStores implements INode {
this.icon = 'chroma.svg' this.icon = 'chroma.svg'
this.category = 'Vector Stores' this.category = 'Vector Stores'
this.description = 'Upsert documents to Chroma' this.description = 'Upsert documents to Chroma'
this.baseClasses = [this.type, ...getBaseClasses(Chroma)] this.baseClasses = [this.type, 'BaseRetriever']
this.inputs = [ this.inputs = [
{ {
label: 'Document', label: 'Document',

View File

@ -2,7 +2,6 @@ import { INode, INodeData, INodeParams } from '../../../src/Interface'
import { PineconeClient } from '@pinecone-database/pinecone' import { PineconeClient } from '@pinecone-database/pinecone'
import { PineconeStore } from 'langchain/vectorstores/pinecone' import { PineconeStore } from 'langchain/vectorstores/pinecone'
import { Embeddings } from 'langchain/embeddings/base' import { Embeddings } from 'langchain/embeddings/base'
import { getBaseClasses } from '../../../src/utils'
class Pinecone_Existing_VectorStores implements INode { class Pinecone_Existing_VectorStores implements INode {
label: string label: string
@ -21,7 +20,7 @@ class Pinecone_Existing_VectorStores implements INode {
this.icon = 'pinecone.png' this.icon = 'pinecone.png'
this.category = 'Vector Stores' this.category = 'Vector Stores'
this.description = 'Load existing index from Pinecone (i.e: Document has been upserted)' this.description = 'Load existing index from Pinecone (i.e: Document has been upserted)'
this.baseClasses = [this.type, ...getBaseClasses(PineconeStore)] this.baseClasses = [this.type, 'BaseRetriever']
this.inputs = [ this.inputs = [
{ {
label: 'Embeddings', label: 'Embeddings',

View File

@ -3,7 +3,6 @@ import { PineconeClient } from '@pinecone-database/pinecone'
import { PineconeStore } from 'langchain/vectorstores/pinecone' import { PineconeStore } from 'langchain/vectorstores/pinecone'
import { Embeddings } from 'langchain/embeddings/base' import { Embeddings } from 'langchain/embeddings/base'
import { Document } from 'langchain/document' import { Document } from 'langchain/document'
import { getBaseClasses } from '../../../src/utils'
class PineconeUpsert_VectorStores implements INode { class PineconeUpsert_VectorStores implements INode {
label: string label: string
@ -22,7 +21,7 @@ class PineconeUpsert_VectorStores implements INode {
this.icon = 'pinecone.png' this.icon = 'pinecone.png'
this.category = 'Vector Stores' this.category = 'Vector Stores'
this.description = 'Upsert documents to Pinecone' this.description = 'Upsert documents to Pinecone'
this.baseClasses = [this.type, ...getBaseClasses(PineconeStore)] this.baseClasses = [this.type, 'BaseRetriever']
this.inputs = [ this.inputs = [
{ {
label: 'Document', label: 'Document',

View File

@ -1,6 +1,6 @@
{ {
"name": "flowise-components", "name": "flowise-components",
"version": "1.1.0", "version": "1.1.1",
"description": "Flowiseai Components", "description": "Flowiseai Components",
"main": "dist/src/index", "main": "dist/src/index",
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",