Skip to content

Commit b5191f5

Browse files
committed
allow smaller chunk sizes
1 parent 1155a1f commit b5191f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ragadoc/ui_sidebar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def render_sidebar():
9797
st.info("🔍 **Smart Retrieval**: The system first finds ALL chunks above the similarity threshold, then limits to the max number.")
9898

9999
# RAG parameters (excluding embedding model which is now global)
100-
chunk_size = st.slider("Chunk Size (tokens)", 256, 1024, st.session_state.rag_config["chunk_size"], 64)
100+
chunk_size = st.slider("Chunk Size (tokens)", 32, 1024, st.session_state.rag_config["chunk_size"], 64)
101101
chunk_overlap = st.slider("Chunk Overlap (tokens)", 0, 200, st.session_state.rag_config["chunk_overlap"], 10)
102102
similarity_threshold = st.slider("Similarity Threshold", 0.0, 1.0, st.session_state.rag_config["similarity_threshold"], 0.05)
103103
top_k = st.slider("Max Retrieved Chunks", 1, 20, st.session_state.rag_config["top_k"], 1)

0 commit comments

Comments
 (0)