From 076c54c4863511cff3c7b15ce8a593d7a0628caf Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 25 Oct 2024 21:47:47 -0700 Subject: [PATCH] refac --- backend/open_webui/apps/retrieval/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/retrieval/main.py b/backend/open_webui/apps/retrieval/main.py index 0799fb47f..96b38512d 100644 --- a/backend/open_webui/apps/retrieval/main.py +++ b/backend/open_webui/apps/retrieval/main.py @@ -669,7 +669,7 @@ def save_docs_to_vector_db( elif app.state.config.TEXT_SPLITTER == "token": text_splitter = TokenTextSplitter( - encoding_name=app.state.config.TIKTOKEN_ENCODING_NAME, + encoding_name=str(app.state.config.TIKTOKEN_ENCODING_NAME), chunk_size=app.state.config.CHUNK_SIZE, chunk_overlap=app.state.config.CHUNK_OVERLAP, add_start_index=True,