updating chunk approach

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-02-17 15:24:57 -05:00
parent 4b34603995
commit d777789958

View file

@ -100,7 +100,7 @@ class SQLiteVecIndex(EmbeddingIndex):
logger.error(f"Error inserting into {self.vector_table}: {e}") logger.error(f"Error inserting into {self.vector_table}: {e}")
finally: finally:
cur.close() # Ensure cursor is closed cur.close()
async def query(self, embedding: NDArray, k: int, score_threshold: float) -> QueryChunksResponse: async def query(self, embedding: NDArray, k: int, score_threshold: float) -> QueryChunksResponse:
""" """