Skip to content

Commit

Permalink
udpate sql parse
Browse files Browse the repository at this point in the history
  • Loading branch information
aero-xi committed Dec 10, 2024
1 parent 581cf8b commit 7ffe6f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pai_rag/integrations/data_analysis/nl2sql_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def parse_response_to_sql(self, response: str, query_bundle: QueryBundle) -> str
response = response[:sql_query_end].rstrip().replace("```", "")
return response.strip().replace("```", "").lstrip("sql")


def get_sql_info(sql_config: SqlAnalysisConfig):
if isinstance(sql_config, SqliteAnalysisConfig):
db_path = os.path.join(sql_config.db_path, sql_config.database)
Expand Down

0 comments on commit 7ffe6f4

Please sign in to comment.