Skip to main content
This will help you get started with local filesystem key-value stores. For detailed documentation of all LocalFileStore features and configurations head to the API reference.

Overview

The LocalFileStore 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

Installation

The LangChain LocalFileStore integration lives in the langchain package:

Instantiation

Now we can instantiate our byte store:

Usage

You can set data under keys like this using the mset method:
You can see the created files in your data folder:
And you can delete data using the mdelete method:

API reference

For detailed documentation of all LocalFileStore features and configurations, head to the API reference