Fix OpenSearch vector store upsert (#2545)
This commit is contained in:
parent
1d9927027d
commit
e5f0ca2dd3
|
|
@ -80,7 +80,7 @@ class OpenSearch_VectorStores implements INode {
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
vectorStoreMethods = {
|
vectorStoreMethods = {
|
||||||
async upsert(nodeData: INodeData, _: string, options: ICommonObject): Promise<Partial<IndexingResult>> {
|
async upsert(nodeData: INodeData, options: ICommonObject): Promise<Partial<IndexingResult>> {
|
||||||
const docs = nodeData.inputs?.document as Document[]
|
const docs = nodeData.inputs?.document as Document[]
|
||||||
const embeddings = nodeData.inputs?.embeddings as Embeddings
|
const embeddings = nodeData.inputs?.embeddings as Embeddings
|
||||||
const indexName = nodeData.inputs?.indexName as string
|
const indexName = nodeData.inputs?.indexName as string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue