From 2ee37a1c7bf5eaee22e1aef0335a3a6bc986446d Mon Sep 17 00:00:00 2001 From: Pat Patterson Date: Fri, 22 Nov 2024 12:40:06 -0800 Subject: [PATCH] community: list valid values for LanceDB constructor's `mode` argument (#28296) **Description:** Currently, the docstring for `LanceDB.__init__()` provides the default value for `mode`, but not the list of valid values. This PR adds that list to the docstring. **Issue:** N/A **Dependencies:** N/A **Twitter handle:** `@metadaddy` [Leaving as a reminder: If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.] --- libs/community/langchain_community/vectorstores/lancedb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/community/langchain_community/vectorstores/lancedb.py b/libs/community/langchain_community/vectorstores/lancedb.py index d790fa169cc..bcde354e888 100644 --- a/libs/community/langchain_community/vectorstores/lancedb.py +++ b/libs/community/langchain_community/vectorstores/lancedb.py @@ -43,7 +43,8 @@ class LanceDB(VectorStore): table_name: Name of the table to use. Defaults to ``vectorstore``. api_key: API key to use for LanceDB cloud database. region: Region to use for LanceDB cloud database. - mode: Mode to use for adding data to the table. Defaults to ``overwrite``. + mode: Mode to use for adding data to the table. Valid values are + ``append`` and ``overwrite``. Defaults to ``overwrite``.