Use a raw string for the chunker's regex query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f945b8bad
commit
bf19e503f9
1 file changed
+1
-1
@@ -76,7 +76,7 @@ def build_chunks(conn: Connection, batch: int = 5000) -> int:
|
|||||||
conn.execute(UPSERT_CHUNK, (c["id"], None, 0, text.strip()))
|
conn.execute(UPSERT_CHUNK, (c["id"], None, 0, text.strip()))
|
||||||
|
|
||||||
docs = conn.execute(
|
docs = conn.execute(
|
||||||
"""
|
r"""
|
||||||
SELECT d.id, d.title, d.full_text FROM document d
|
SELECT d.id, d.title, d.full_text FROM document d
|
||||||
WHERE d.full_text ~ '\S' AND NOT EXISTS (SELECT 1 FROM chunk ch WHERE ch.document_id = d.id)
|
WHERE d.full_text ~ '\S' AND NOT EXISTS (SELECT 1 FROM chunk ch WHERE ch.document_id = d.id)
|
||||||
LIMIT %s
|
LIMIT %s
|
||||||
|
|||||||
Reference in new issue
Block a user