Class: SQLiteVectorStore
Provides support for writing and querying vector data in SQLite.
Extends
Implements
Constructors
new SQLiteVectorStore()
new SQLiteVectorStore(
config
):SQLiteVectorStore
Parameters
• config: SQLiteVectorStoreConfig
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:64
Properties
dimensions
readonly
dimensions:number
=1536
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:59
embedModel
embedModel:
BaseEmbedding
Inherited from
Defined in
packages/llamaindex/src/vector-store/types.ts:104
filename
readonly
filename:string
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:62
storesText
storesText:
boolean
=true
Implementation of
VectorStoreNoEmbedModel
.storesText
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:56
tableName
readonly
tableName:string
='vector_data'
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:58
Methods
add()
add(
nodes
):Promise
<string
[]>
Parameters
Returns
Promise
<string
[]>
Implementation of
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:125
client()
client():
Database
Returns
Database
Implementation of
VectorStoreNoEmbedModel
.client
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:110
delete()
delete(
id
):Promise
<void
>
Parameters
• id: string
Returns
Promise
<void
>
Implementation of
VectorStoreNoEmbedModel
.delete
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:141
initializeDatabase()
initializeDatabase():
Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:117
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:174
query()
query(
query
):Promise
<VectorStoreQueryResult
>
Parameters
• query: VectorStoreQuery
Returns
Promise
<VectorStoreQueryResult
>
Implementation of
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:149
fromBetterSqlite3()
static
fromBetterSqlite3(filename
):Promise
<SQLiteVectorStore
>
Parameters
• filename: string
Returns
Promise
<SQLiteVectorStore
>
Defined in
packages/llamaindex/src/vector-store/SQLiteVectorStore.ts:71