Amrita P commited on
Commit
a1d3374
·
1 Parent(s): f694daf

fix: change the chunk and overlap size

Browse files
Files changed (2) hide show
  1. app_gradio.py +2 -2
  2. generation/generator.py +1 -2
app_gradio.py CHANGED
@@ -37,8 +37,8 @@ pipeline = IngestionPipeline(
37
  embedder=embedder,
38
  index=index,
39
  strategy="recursive_character",
40
- chunk_size=500,
41
- overlap=50,
42
  )
43
  print("Initialising Gemini generator...")
44
  generator = Generator()
 
37
  embedder=embedder,
38
  index=index,
39
  strategy="recursive_character",
40
+ chunk_size=1000,
41
+ overlap=200,
42
  )
43
  print("Initialising Gemini generator...")
44
  generator = Generator()
generation/generator.py CHANGED
@@ -20,8 +20,7 @@ You are a precise document Q&A assistant. Follow these rules without exception:
20
  1. Answer using ONLY the information in the numbered context sources below.
21
  2. Cite every claim inline with [Source N] where N is the source number.
22
  3. If the same fact appears in multiple sources, cite all of them: [Source 1][Source 3].
23
- 4. If the context does not contain enough information to answer, respond with exactly:
24
- "The provided documents do not contain enough information to answer this question."
25
  5. Do not draw on outside knowledge. Do not speculate or infer beyond what is stated.\
26
  """
27
 
 
20
  1. Answer using ONLY the information in the numbered context sources below.
21
  2. Cite every claim inline with [Source N] where N is the source number.
22
  3. If the same fact appears in multiple sources, cite all of them: [Source 1][Source 3].
23
+ 4. If the context seems incomplete, do your best to answer from what is available and note which parts you're less certain about.
 
24
  5. Do not draw on outside knowledge. Do not speculate or infer beyond what is stated.\
25
  """
26