Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
98978c51
Commit
98978c51
authored
7 months ago
by
文靖昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打印位置
parent
9012ab95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
rag_query.py
src/server/rag_query.py
+1
-1
No files found.
src/server/rag_query.py
View file @
98978c51
...
...
@@ -46,7 +46,6 @@ class RagQuery():
city_ext
=
complete_administrative_division
(
m
,
divisions
)
cities_ext
.
append
(
city_ext
)
location
=
[]
print
(
location
)
prompt
=
""
for
city
in
cities_ext
:
if
city
is
not
None
and
"县(区)"
in
city
:
...
...
@@ -58,6 +57,7 @@ class RagQuery():
prompt
+=
city
[
"省"
]
+
city
[
"市"
]
+
"管辖"
for
x
in
city
[
"县(区)"
]:
prompt
+=
x
+
","
print
(
location
)
new_question
=
prompt
+
question
print
(
new_question
)
split_docs_list
=
[]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment