Spaces:
Sleeping
Sleeping
david-oplatka
commited on
Commit
•
bfa50c4
1
Parent(s):
a68fd65
Increase sentence context
Browse files
query.py
CHANGED
@@ -74,8 +74,8 @@ class VectaraQuery():
|
|
74 |
'numResults': 50,
|
75 |
'corpusKey': corpora_key_list,
|
76 |
'context_config': {
|
77 |
-
'sentences_before':
|
78 |
-
'sentences_after':
|
79 |
'start_tag': "%START_SNIPPET%",
|
80 |
'end_tag': "%END_SNIPPET%",
|
81 |
},
|
@@ -195,4 +195,4 @@ class VectaraQuery():
|
|
195 |
chunks.append(accumulated_text)
|
196 |
yield accumulated_text
|
197 |
|
198 |
-
return ''.join(chunks)
|
|
|
74 |
'numResults': 50,
|
75 |
'corpusKey': corpora_key_list,
|
76 |
'context_config': {
|
77 |
+
'sentences_before': 3,
|
78 |
+
'sentences_after': 3,
|
79 |
'start_tag': "%START_SNIPPET%",
|
80 |
'end_tag': "%END_SNIPPET%",
|
81 |
},
|
|
|
195 |
chunks.append(accumulated_text)
|
196 |
yield accumulated_text
|
197 |
|
198 |
+
return ''.join(chunks)
|