LocalFileStore
is a wrapper around the fs
module for storing data as key-value pairs.
Each key value pair has its own file nested inside the directory passed to the .fromPath
method.
The file name is the key and inside contains the value of the key.
Class | Package | Local | PY support | Package downloads | Package latest |
---|---|---|---|---|---|
LocalFileStore | langchain | ✅ | ✅ |
LocalFileStore
integration lives in the langchain
package:
Uint8Array
and back:
mset
method:
mdelete
method:
yieldKeys
method. Optionally, you can pass a key prefix to only get back keys which match that prefix.