MrSimple07 commited on
Commit
63a9d97
·
1 Parent(s): 667915a

max chars = 4000 + max rows =20, topk 60+ 40 = 100, cut off = 0.7

Browse files
Files changed (2) hide show
  1. config.py +1 -1
  2. index_retriever.py +3 -3
config.py CHANGED
@@ -51,7 +51,7 @@ DEFAULT_MODEL = "Gemini 2.5 Flash"
51
  CHUNK_SIZE = 1500
52
  CHUNK_OVERLAP = 128
53
 
54
- MAX_CHARS_TABLE = 2000
55
  MAX_ROWS_TABLE = 20
56
 
57
  CUSTOM_PROMPT = """
 
51
  CHUNK_SIZE = 1500
52
  CHUNK_OVERLAP = 128
53
 
54
+ MAX_CHARS_TABLE = 4000
55
  MAX_ROWS_TABLE = 20
56
 
57
  CUSTOM_PROMPT = """
index_retriever.py CHANGED
@@ -71,13 +71,13 @@ def create_query_engine(vector_index):
71
 
72
  bm25_retriever = BM25Retriever.from_defaults(
73
  docstore=vector_index.docstore,
74
- similarity_top_k=50
75
  )
76
 
77
  vector_retriever = VectorIndexRetriever(
78
  index=vector_index,
79
- similarity_top_k=50,
80
- similarity_cutoff=0.75
81
  )
82
 
83
  hybrid_retriever = QueryFusionRetriever(
 
71
 
72
  bm25_retriever = BM25Retriever.from_defaults(
73
  docstore=vector_index.docstore,
74
+ similarity_top_k=60
75
  )
76
 
77
  vector_retriever = VectorIndexRetriever(
78
  index=vector_index,
79
+ similarity_top_k=40,
80
+ similarity_cutoff=0.7
81
  )
82
 
83
  hybrid_retriever = QueryFusionRetriever(