Spaces:
Runtime error
Runtime error
Merge branch 'main' of hf.co:spaces/myscale/ChatData
Browse files- chains/arxiv_chains.py +1 -1
chains/arxiv_chains.py
CHANGED
|
@@ -73,7 +73,7 @@ class VectorSQLRetrieveCustomOutputParser(VectorSQLOutputParser):
|
|
| 73 |
start = text.upper().find("SELECT")
|
| 74 |
if start >= 0:
|
| 75 |
end = text.upper().find("FROM")
|
| 76 |
-
text = text.replace(text[start + len("SELECT") + 1 : end - 1], "
|
| 77 |
return super().parse(text)
|
| 78 |
|
| 79 |
class ArXivStuffDocumentChain(StuffDocumentsChain):
|
|
|
|
| 73 |
start = text.upper().find("SELECT")
|
| 74 |
if start >= 0:
|
| 75 |
end = text.upper().find("FROM")
|
| 76 |
+
text = text.replace(text[start + len("SELECT") + 1 : end - 1], ", ".join(self.must_have_columns))
|
| 77 |
return super().parse(text)
|
| 78 |
|
| 79 |
class ArXivStuffDocumentChain(StuffDocumentsChain):
|