Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class DocStore_VectorStores implements INode {
constructor() {
this.label = 'Document Store (Vector)'
this.name = 'documentStoreVS'
this.version = 1.0
this.version = 1.1
this.type = 'DocumentStoreVS'
this.icon = 'dstore.svg'
this.category = 'Vector Stores'
this.description = `Search and retrieve documents from Document Store`
this.baseClasses = [this.type]
this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since this node can also output a VectorStore (as defined in the outputs array), it should include 'VectorStore' in its top-level baseClasses to ensure it is fully compatible and connectable as a vector store in all contexts.

Suggested change
this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever']
this.baseClasses = [this.type, 'VectorStore', 'VectorStoreRetriever', 'BaseRetriever']

this.inputs = [
{
label: 'Select Store',
Expand All @@ -34,7 +34,7 @@ class DocStore_VectorStores implements INode {
{
label: 'Retriever',
name: 'retriever',
baseClasses: ['BaseRetriever']
baseClasses: ['VectorStoreRetriever', 'BaseRetriever']
},
{
label: 'Vector Store',
Expand Down