From c5645bc12e6a7ab39e2c67c9c697ac9b089670fc Mon Sep 17 00:00:00 2001 From: Fraser Date: Tue, 6 Jun 2023 09:42:54 -0400 Subject: [PATCH] strip blocks again It looks like Henri accidentally removed this in 5785e1eb49ec97080251cc050e019344182428c4. Quick fix. --- api/get_blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/get_blocks.py b/api/get_blocks.py index 3fc1c70..b1015b8 100644 --- a/api/get_blocks.py +++ b/api/get_blocks.py @@ -98,7 +98,7 @@ def get_top_k_blocks(index, user_query: str, k: int) -> List[Block]: date = date, url = match['metadata']['url'], tags = match['metadata']['tags'], - text = match['metadata']['text'] + text = strip_block(match['metadata']['text']) )) t2 = time.time()