Commit 3d158e58 by 文靖昊

打印位置信息,方便确定流程中遇到的问题

parent 2c152b87
...@@ -35,7 +35,7 @@ class RagQuery(): ...@@ -35,7 +35,7 @@ class RagQuery():
location_str = location_result.content location_str = location_result.content
else: else:
location_str = location_result.content[index + len("提取到的行政区:"):] location_str = location_result.content[index + len("提取到的行政区:"):]
print(location_str)
pattern = r'\[([^\]]+)\]' pattern = r'\[([^\]]+)\]'
match = re.search(pattern, location_str) match = re.search(pattern, location_str)
cities = [] cities = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment