Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -16,16 +16,16 @@ def display_table(data, rows_per_page=10):
|
|
16 |
height = min(40 + rows_per_page * 38, 800)
|
17 |
st.dataframe(data, height=height)
|
18 |
|
19 |
-
|
20 |
def main():
|
21 |
-
st.title("Multihop-RAG Benchmark
|
22 |
|
23 |
data = load_data()
|
24 |
|
25 |
st.sidebar.header("Search Options")
|
26 |
-
chat_model_query = st.sidebar.text_input("
|
27 |
-
embedding_model_query = st.sidebar.text_input("
|
28 |
-
chunk_query = st.sidebar.text_input("
|
|
|
29 |
|
30 |
if chat_model_query:
|
31 |
data = case_insensitive_search(data, chat_model_query, 'chat_model')
|
@@ -33,9 +33,9 @@ def main():
|
|
33 |
data = case_insensitive_search(data, embedding_model_query, 'embedding_model')
|
34 |
if chunk_query:
|
35 |
data = case_insensitive_search(data, chunk_query, 'chunk')
|
|
|
|
|
36 |
|
37 |
-
|
38 |
-
st.header("Benchmark Results")
|
39 |
st.write("Displaying results for MRR@10, Hit@10, and Accuracy across different frameworks, embedding models, chat models, and chunks.")
|
40 |
display_table(data)
|
41 |
|
@@ -48,10 +48,10 @@ def main():
|
|
48 |
st.sidebar.header("Citation")
|
49 |
st.sidebar.info(
|
50 |
"Please cite this dataset as:\n"
|
51 |
-
"
|
52 |
)
|
53 |
st.markdown("---")
|
54 |
-
st.caption("For citation, please use: '
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
main()
|
|
|
16 |
height = min(40 + rows_per_page * 38, 800)
|
17 |
st.dataframe(data, height=height)
|
18 |
|
|
|
19 |
def main():
|
20 |
+
st.title("Multihop-RAG Benchmark 💡")
|
21 |
|
22 |
data = load_data()
|
23 |
|
24 |
st.sidebar.header("Search Options")
|
25 |
+
chat_model_query = st.sidebar.text_input("Chat Model")
|
26 |
+
embedding_model_query = st.sidebar.text_input("Embedding Model")
|
27 |
+
chunk_query = st.sidebar.text_input("Chunk")
|
28 |
+
frame_query = st.sidebar.text_input("Framework")
|
29 |
|
30 |
if chat_model_query:
|
31 |
data = case_insensitive_search(data, chat_model_query, 'chat_model')
|
|
|
33 |
data = case_insensitive_search(data, embedding_model_query, 'embedding_model')
|
34 |
if chunk_query:
|
35 |
data = case_insensitive_search(data, chunk_query, 'chunk')
|
36 |
+
if frame_query:
|
37 |
+
data = case_insensitive_search(data, frame_query, 'framework')
|
38 |
|
|
|
|
|
39 |
st.write("Displaying results for MRR@10, Hit@10, and Accuracy across different frameworks, embedding models, chat models, and chunks.")
|
40 |
display_table(data)
|
41 |
|
|
|
48 |
st.sidebar.header("Citation")
|
49 |
st.sidebar.info(
|
50 |
"Please cite this dataset as:\n"
|
51 |
+
"Tang, Yixuan, and Yi Yang. MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries. ArXiv, 2024, /abs/2401.15391."
|
52 |
)
|
53 |
st.markdown("---")
|
54 |
+
st.caption("For citation, please use: 'Tang, Yixuan, and Yi Yang. MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries. ArXiv, 2024, /abs/2401.15391. '")
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
main()
|