Class: SimpleVectorStore
Extends
Implements
Constructors
new SimpleVectorStore()
new SimpleVectorStore(
init
?):SimpleVectorStore
Parameters
• init?: object
& Partial
<IEmbedModel
>
Returns
Overrides
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:41
Properties
data
private
data:SimpleVectorStoreData
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:38
embedModel
embedModel:
BaseEmbedding
Inherited from
Source
packages/core/src/storage/vectorStore/types.ts:86
persistPath
private
persistPath:undefined
|string
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:39
storesText
storesText:
boolean
=false
Implementation of
VectorStoreNoEmbedModel
. storesText
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:37
Accessors
client
get
client():any
Returns
any
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:54
Methods
add()
add(
embeddingResults
):Promise
<string
[]>
Parameters
• embeddingResults: BaseNode
<Metadata
>[]
Returns
Promise
<string
[]>
Implementation of
Source
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:62
delete()
delete(
refDocId
):Promise
<void
>
Parameters
• refDocId: string