Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files243 unmodified lines244245246247248249163 unmodified lines413414415416417418419243 unmodified lines# Model Selectorst.header("🧠 Intelligence")model_map = {"Granite 4 (IBM)": "granite4:latest","Llama 3.2 (Meta)": "llama3.2:latest",163 unmodified linesfile_path=temp_path,username=st.session_state.username,index_name=st.session_state.active_index,strategy=chunk_strategy)if ok:243 unmodified lines244245246247248249250251252253254255256257258259260261262263264163 unmodified lines428429430431432433434435243 unmodified lines# Model Selectorst.header("🧠 Intelligence")# 1. EMBEDDING MODEL SELECTOR (New!)st.subheader("1. Embeddings (The Memory)")embed_options = {"Standard (All-MiniLM, 384d)": "sentence-transformers/all-MiniLM-L6-v2","High-Perf (MPNet, 768d)": "sentence-transformers/all-mpnet-base-v2","OpenAI Small (1536d)": "text-embedding-3-small"}embed_choice_label = st.selectbox("Select Embedding Model", list(embed_options.keys()))# Store the actual API string in session statest.session_state.active_embed_model = embed_options[embed_choice_label]# 2. LLM SELECTOR (The Brain)st.subheader("2. Chat Model (The Brain)")model_map = {"Granite 4 (IBM)": "granite4:latest","Llama 3.2 (Meta)": "llama3.2:latest",163 unmodified linesfile_path=temp_path,username=st.session_state.username,index_name=st.session_state.active_index,strategy=chunk_strategy,embed_model_name=st.session_state.active_embed_model)if ok:
src/app.py+17-1