Spaces:
Running
Running
github-actions
commited on
Commit
•
c284dff
1
Parent(s):
f7c2fa2
Sync updates from source repository
Browse files
query.py
CHANGED
@@ -62,7 +62,7 @@ class VectaraQuery():
|
|
62 |
|
63 |
def get_body(self, query_str: str):
|
64 |
corpora_key_list = [{
|
65 |
-
'customer_id': self.customer_id, 'corpus_id': corpus_id, 'lexical_interpolation_config': {'lambda': 0.
|
66 |
} for corpus_id in self.corpus_ids
|
67 |
]
|
68 |
|
@@ -81,7 +81,7 @@ class VectaraQuery():
|
|
81 |
},
|
82 |
'rerankingConfig':
|
83 |
{
|
84 |
-
'rerankerId':
|
85 |
'mmrConfig': {
|
86 |
'diversityBias': 0.3
|
87 |
}
|
@@ -89,7 +89,7 @@ class VectaraQuery():
|
|
89 |
'summary': [
|
90 |
{
|
91 |
'responseLang': 'eng',
|
92 |
-
'maxSummarizedResults':
|
93 |
'summarizerPromptName': self.prompt_name,
|
94 |
'chat': {
|
95 |
'store': True,
|
|
|
62 |
|
63 |
def get_body(self, query_str: str):
|
64 |
corpora_key_list = [{
|
65 |
+
'customer_id': self.customer_id, 'corpus_id': corpus_id, 'lexical_interpolation_config': {'lambda': 0.005}
|
66 |
} for corpus_id in self.corpus_ids
|
67 |
]
|
68 |
|
|
|
81 |
},
|
82 |
'rerankingConfig':
|
83 |
{
|
84 |
+
'rerankerId': 272725719,
|
85 |
'mmrConfig': {
|
86 |
'diversityBias': 0.3
|
87 |
}
|
|
|
89 |
'summary': [
|
90 |
{
|
91 |
'responseLang': 'eng',
|
92 |
+
'maxSummarizedResults': 10,
|
93 |
'summarizerPromptName': self.prompt_name,
|
94 |
'chat': {
|
95 |
'store': True,
|