Overview
TheLocalFileStore
is a persistent implementation of ByteStore
that stores everything in a folder of your choosing. It’s useful if you’re using a single machine and are tolerant of files being added or deleted.
Integration details
Class | Package | Local | JS support | Downloads | Version |
---|---|---|---|---|---|
LocalFileStore | langchain | ✅ | ✅ |
Installation
The LangChainLocalFileStore
integration lives in the langchain
package:
Instantiation
Now we can instantiate our byte store:Usage
You can set data under keys like this using themset
method:
data
folder:
mdelete
method:
API reference
For detailed documentation of allLocalFileStore
features and configurations, head to the API reference: python.langchain.com/api_reference/langchain/storage/langchain.storage.file_system.LocalFileStore.html