yixuantt commited on
Commit
883179e
1 Parent(s): 32d995f
Files changed (2) hide show
  1. app.py +4 -4
  2. data.jsonl +3 -0
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import streamlit as st
2
  import pandas as pd
3
- from streamlit_gsheets import GSheetsConnection
4
 
5
  def load_data():
6
- GSheetsConnection = "https://docs.google.com/spreadsheets/d/1Ui9gZoSKxSIW0B7fG8ryuN0nhkVhAckFxl2hWf6CaJQ/edit?usp=sharing"
7
- conn = st.connection("gsheets", type=GSheetsConnection)
8
- df = conn.read()
9
  return df
10
 
11
  def case_insensitive_search(data, query, column):
 
1
  import streamlit as st
2
  import pandas as pd
3
+
4
 
5
  def load_data():
6
+ with open("data.jsonl", 'r', encoding='utf-8') as file:
7
+ data = [json.loads(line) for line in file]
8
+ df = pd.DataFrame(data)
9
  return df
10
 
11
  def case_insensitive_search(data, query, column):
data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {"Framework":"naive_RAG","Chat Model":"GPT-4","Embedding Model":"voyage-02","Reranker Model":"BAAI\/bge-reranker-large","Chunk Size":256,"MRR@10":0.3934,"Hit@10":0.6506,"Accuracy":0.56}
2
+ {"Framework":"naive_RAG","Chat Model":"ChatGPT","Embedding Model":"voyage-02","Reranker Model":"BAAI\/bge-reranker-large","Chunk Size":256,"MRR@10":0.3934,"Hit@10":0.6506,"Accuracy":0.44}
3
+ {"Framework":"naive_RAG","Chat Model":"Llama-2-70b-chat-hf","Embedding Model":"voyage-02","Reranker Model":"BAAI\/bge-reranker-large","Chunk Size":256,"MRR@10":0.3934,"Hit@10":0.6506,"Accuracy":0.28}