mpsk commited on
Commit
92dac1d
β€’
1 Parent(s): 2036e29

Update chains/arxiv_chains.py

Browse files
Files changed (1) hide show
  1. 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], "title, abstract, authors, pubdate, categories, id")
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):