Class: SimpleVectorStore
Extends
Constructors
new SimpleVectorStore()
new SimpleVectorStore(
init
?):SimpleVectorStore
Parameters
• init?: object
& VectorStoreBaseParams
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:128
Properties
embedModel
embedModel:
BaseEmbedding
Inherited from
Defined in
packages/llamaindex/src/vector-store/types.ts:89
isEmbeddingQuery?
optional
isEmbeddingQuery:boolean
Inherited from
BaseVectorStore
.isEmbeddingQuery
Defined in
packages/llamaindex/src/vector-store/types.ts:91
storesText
storesText:
boolean
=false
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:124
Methods
add()
add(
embeddingResults
):Promise
<string
[]>
Parameters
• embeddingResults: BaseNode
<Metadata
>[]
Returns
Promise
<string
[]>
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:153
client()
client():
any
Returns
any
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:145
delete()
delete(
refDocId
):Promise
<void
>
Parameters
• refDocId: string
Returns
Promise
<void
>
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:176
get()
get(
textId
):Promise
<number
[]>
Parameters
• textId: string
Returns
Promise
<number
[]>
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:149
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
= ...
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:253
query()
query(
query
):Promise
<VectorStoreQueryResult
>
Parameters
• query: VectorStoreQuery
Returns
Promise
<VectorStoreQueryResult
>
Overrides
Defined in
packages/llamaindex/src/vector-store/SimpleVectorStore.ts:216
toDict()
toDict():
SimpleVectorStoreData