Class | Package | PY support | Package latest |
---|---|---|---|
LibSQLVectorStore | @langchain/community | ❌ |
@langchain/community
integration package.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai
integration package. You can also use other supported embeddings models if you wish.
You can use local SQLite when working with the libSQL vector store, or use a hosted Turso Database.
TABLE_NAME
is the name of the table you want to create.content
is used to store the Document.pageContent
values.metadata
is used to store the Document.metadata
object.EMBEDDING_COLUMN
is used to store the vector values, use the dimensions size used by the model you plan to use (1536 for OpenAI).EMBEDDING_COLUMN
column - the index name is important!:
TABLE_NAME
and EMBEDDING_COLUMN
with the values you used in the previous step.
LibSQL
vector store, you need to provide the database URL and Auth Token when working remotely, or by passing the filename for a local SQLite.
LibSQLVectorStore
features and configurations head to the API reference.