From 973f850b6dce9961e458b40b38b2a65c350642f5 Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Wed, 11 Dec 2024 11:10:55 -0500 Subject: [PATCH] =?UTF-8?q?fix(llamabot/components)=F0=9F=94=A7:=20Update?= =?UTF-8?q?=20FTS=20index=20creation=20and=20llamabot=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable replacement of existing FTS index in LanceDBDocStore. - Update llamabot version from 0.10.0 to 0.10.1 in pixi.lock. --- llamabot/components/docstore.py | 2 +- pixi.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llamabot/components/docstore.py b/llamabot/components/docstore.py index 2790209a3..d6db74e51 100644 --- a/llamabot/components/docstore.py +++ b/llamabot/components/docstore.py @@ -195,7 +195,7 @@ class DocstoreEntry(LanceModel): ] except ValueError: self.existing_records = [] - self.table.create_fts_index(field_names=["document"]) + self.table.create_fts_index(field_names=["document"], replace=True) def __contains__(self, other: str) -> bool: """Returns boolean whether the 'other' document is in the store. diff --git a/pixi.lock b/pixi.lock index 9718e80ca..a0dc9d8d3 100644 --- a/pixi.lock +++ b/pixi.lock @@ -10952,9 +10952,9 @@ packages: requires_python: '!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8' - kind: pypi name: llamabot - version: 0.10.0 + version: 0.10.1 path: . - sha256: fae125e4270f39a4f3bc026c256ea22637bc92a9a6b89f22f9586dd1eaa41a85 + sha256: 5d503273283cde9c1b6e264e7832371796c215e115d20d52573e4ea01e2b7217 requires_dist: - openai - panel