Class: SimpleVectorStore
Implements
Constructors
constructor
• new SimpleVectorStore(data?
, fs?
)
Parameters
Name | Type |
---|---|
data? | SimpleVectorStoreData |
fs? | GenericFileSystem |
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:37
Properties
data
• Private
data: SimpleVectorStoreData
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:33
fs
• Private
fs: GenericFileSystem
= DEFAULT_FS
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:34
persistPath
• Private
persistPath: undefined
| string
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:35
storesText
• storesText: boolean
= false
Implementation of
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:32
Accessors
client
• get
client(): any
Returns
any
Implementation of
VectorStore.client
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:50
Methods
add
▸ add(embeddingResults
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
embeddingResults | BaseNode <Metadata >[] |
Returns
Promise
<string
[]>
Implementation of
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:58
delete
▸ delete(refDocId
): Promise
<void
>
Parameters
Name | Type |
---|---|
refDocId | string |
Returns
Promise
<void
>
Implementation of
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:77