forked from Archives/langchain
Open a Deeplake dataset in read only mode (#2240)
I'm using Deeplake as a vector store for a Q&A application. When several questions are being processed at the same time for the same dataset, the 2nd one triggers the following error: > LockedException: This dataset cannot be open for writing as it is locked by another machine. Try loading the dataset with `read_only=True`. Answering questions doesn't require writing new embeddings so it's ok to open the dataset in read only mode at that time. This pull request thus adds the `read_only` option to the Deeplake constructor and to its subsequent `deeplake.load()` call. The related Deeplake documentation is [here](https://docs.deeplake.ai/en/latest/deeplake.html#deeplake.load). I've tested this update on my local dev environment. I don't know if an integration test and/or additional documentation are expected however. Let me know if it is, ideally with some guidance as I'm not particularly experienced in Python.doc
parent
e49284acde
commit
5a0844bae1
Loading…
Reference in New Issue