Class: SimpleVectorStore
Implements
Constructors
constructor
• new SimpleVectorStore(data?
, fs?
): SimpleVectorStore
Parameters
Name | Type |
---|---|
data? | SimpleVectorStoreData |
fs? | GenericFileSystem |
Returns
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:38
Properties
data
• Private
data: SimpleVectorStoreData
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:34
fs
• Private
fs: GenericFileSystem
= defaultFS
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:35
persistPath
• Private
persistPath: undefined
| string
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:36
storesText
• storesText: boolean
= false
Implementation of
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:33
Accessors
client
• get
client(): any
Returns
any
Implementation of
VectorStore.client
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:51
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:59
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
get
▸ get(textId
): Promise
<number
[]>
Parameters
Name | Type |
---|---|
textId | string |
Returns
Promise
<number
[]>
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:55
persist
▸ persist(persistPath?
, fs?
): Promise
<void
>
Parameters
Name | Type |
---|---|
persistPath | string |
fs? | GenericFileSystem |
Returns
Promise
<void
>
Defined in
packages/core/src/storage/vectorStore/SimpleVectorStore.ts:149