Class: LibSQLVectorStore
LibSQLVectorStore provides integration with libSQL/Turso for vector storage and similarity search. Note: You must create the table and vector index before using this store. See documentation for required schema and index setup.
Extends
Constructors
new LibSQLVectorStore()
new LibSQLVectorStore(
params
?):LibSQLVectorStore
Parameters
• params?: LibSQLParams
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:52
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
=true
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:35
Methods
add()
add(
nodes
):Promise
<string
[]>
Parameters
Returns
Promise
<string
[]>
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:79
addPlainText()
addPlainText(
nodes
):Promise
<string
[]>
Parameters
Returns
Promise
<string
[]>
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:101
client()
client():
Client
Returns
Client
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:75
delete()
delete(
refDocId
):Promise
<void
>
Parameters
• refDocId: string
Returns
Promise
<void
>
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:158
deleteMany()
deleteMany(
refDocIds
):Promise
<void
>
Parameters
• refDocIds: string
[]
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:165
query()
query(
query
):Promise
<VectorStoreQueryResult
>
Parameters
• query: VectorStoreQuery
Returns
Promise
<VectorStoreQueryResult
>
Overrides
Defined in
packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:176