first commit
Browse files- requirements.txt +0 -0
- src/app.py +3 -2
- src/retrieval.py +1 -1
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|
src/app.py
CHANGED
@@ -122,8 +122,9 @@ if st.session_state.selected_category is None:
|
|
122 |
unsafe_allow_html=True,
|
123 |
)
|
124 |
selected = st.selectbox(
|
125 |
-
|
126 |
-
|
|
|
127 |
if st.button("Valider la catégorie"):
|
128 |
st.session_state.selected_category = selected
|
129 |
st.rerun()
|
|
|
122 |
unsafe_allow_html=True,
|
123 |
)
|
124 |
selected = st.selectbox(
|
125 |
+
"Choisissez une catégorie :", st.session_state.categories, key="category_select", index=0
|
126 |
+
)
|
127 |
+
|
128 |
if st.button("Valider la catégorie"):
|
129 |
st.session_state.selected_category = selected
|
130 |
st.rerun()
|
src/retrieval.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
|
2 |
# hybrid_retrieval.py
|
3 |
-
from
|
4 |
from langchain_core.documents import Document
|
5 |
from langchain_huggingface import HuggingFaceEmbeddings
|
6 |
import os
|
|
|
1 |
|
2 |
# hybrid_retrieval.py
|
3 |
+
from langchain_chroma import Chroma
|
4 |
from langchain_core.documents import Document
|
5 |
from langchain_huggingface import HuggingFaceEmbeddings
|
6 |
import os
|