Spaces:
Sleeping

MrSimple07 commited on
Commit
88a792e
·
1 Parent(s): 840d91b

max chars = 2000 + max rows =20, topk 50+ 50 = 100, cut off = 0.75

Browse files
Files changed (2) hide show
  1. config.py +1 -1
  2. index_retriever.py +1 -1
config.py CHANGED
@@ -52,7 +52,7 @@ DEFAULT_MODEL = "Gemini 2.5 Flash"
52
  CHUNK_SIZE = 1500
53
  CHUNK_OVERLAP = 128
54
 
55
- MAX_CHARS_TABLE = 5000
56
  MAX_ROWS_TABLE = 20
57
 
58
  CUSTOM_PROMPT = """
 
52
  CHUNK_SIZE = 1500
53
  CHUNK_OVERLAP = 128
54
 
55
+ MAX_CHARS_TABLE = 2000
56
  MAX_ROWS_TABLE = 20
57
 
58
  CUSTOM_PROMPT = """
index_retriever.py CHANGED
@@ -77,7 +77,7 @@ def create_query_engine(vector_index):
77
  vector_retriever = VectorIndexRetriever(
78
  index=vector_index,
79
  similarity_top_k=50,
80
- similarity_cutoff=0.65
81
  )
82
 
83
  hybrid_retriever = QueryFusionRetriever(
 
77
  vector_retriever = VectorIndexRetriever(
78
  index=vector_index,
79
  similarity_top_k=50,
80
+ similarity_cutoff=0.75
81
  )
82
 
83
  hybrid_retriever = QueryFusionRetriever(