Skip to main content

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

LibSQLVectorStore

Overrides

BaseVectorStore.constructor

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:52

Properties

embedModel

embedModel: BaseEmbedding

Inherited from

BaseVectorStore.embedModel

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

BaseVectorStore.storesText

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:35

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode<Metadata>[]

Returns

Promise<string[]>

Overrides

BaseVectorStore.add

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:79


addPlainText()

addPlainText(nodes): Promise<string[]>

Parameters

nodes: TextNode<Metadata>[]

Returns

Promise<string[]>

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:101


client()

client(): Client

Returns

Client

Overrides

BaseVectorStore.client

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:75


delete()

delete(refDocId): Promise<void>

Parameters

refDocId: string

Returns

Promise<void>

Overrides

BaseVectorStore.delete

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

BaseVectorStore.query

Defined in

packages/llamaindex/src/vector-store/LibSQLVectorStore.ts:176