Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ChatKnowledge): Add document summary and Integrate ant-v #809

Merged
merged 82 commits into from
Nov 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
ba85901
feat(ChatData): ChatData Strean response
yhjun1026 Oct 20, 2023
bb882a8
Merge branch 'main' into Agent_Hub_Dev
yhjun1026 Oct 20, 2023
6cc194b
doc:update readme
Aries-ckt Oct 20, 2023
8db497f
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into Agent_Hub_Dev
Aries-ckt Oct 20, 2023
b0a9fb7
style:fmt
Aries-ckt Oct 20, 2023
bf75af5
feat(ChatData): ChatData Strean response
yhjun1026 Oct 23, 2023
de42ae1
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into Agent_Hub_Dev
yhjun1026 Oct 23, 2023
afb5fd1
Merge branch 'main' into Agent_Hub_Dev
yhjun1026 Oct 23, 2023
1c5ed28
feat(ChatData): ChatData Strean response
yhjun1026 Oct 26, 2023
f971fdb
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Oct 30, 2023
02681df
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Oct 30, 2023
eab1993
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Oct 30, 2023
3dbf0cf
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Oct 30, 2023
7359616
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Oct 31, 2023
61f39a1
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Nov 2, 2023
4a52d1d
chore:fmt
Aries-ckt Nov 7, 2023
d609ccc
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Nov 8, 2023
2b948c3
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Nov 9, 2023
1b8a678
feat:add document summary
Aries-ckt Nov 9, 2023
f223460
Merge remote-tracking branch 'origin/main' into feat_rag_graph
Aries-ckt Nov 9, 2023
5924f34
bugfix(ChatExcel): ChatExcel Language confusion bug
yhjun1026 Nov 9, 2023
baeaf19
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 9, 2023
ad7964f
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 10, 2023
74a3f6e
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 10, 2023
440a3e9
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 10, 2023
940edcd
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 10, 2023
8df671c
bugfix(ChatData): ChatData Use AntV Table
yhjun1026 Nov 10, 2023
9b4b935
feat(ChatExcel): ChatExcel Use AntV Chart
yhjun1026 Nov 10, 2023
bd7b6fc
feat(ChatExcel): ChatExcel Use AntV Chart
yhjun1026 Nov 10, 2023
7a8c343
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into feat_rag_graph
Aries-ckt Nov 10, 2023
4c2a033
feat(ChatExcel): ChatExcel Use AntV Chart
yhjun1026 Nov 10, 2023
d7f677a
feat:add document summary
Aries-ckt Nov 11, 2023
f735b12
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 13, 2023
479dbff
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 13, 2023
6ea9c17
fix:reference bug
Aries-ckt Nov 13, 2023
5b4e2ca
feat:web update
Aries-ckt Nov 13, 2023
80ee2fb
Recover accidentally deleted files
yhjun1026 Nov 14, 2023
401010d
style:fmt and solve conflict
Aries-ckt Nov 14, 2023
18883ec
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 14, 2023
99fb07a
Merge remote-tracking branch 'origin/main' into feat_rag_graph
Aries-ckt Nov 14, 2023
aaddde8
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 14, 2023
a88484d
Merge branch 'main' into Agent_Hub_Dev
yhjun1026 Nov 14, 2023
1acc8b0
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 14, 2023
85da219
feat:add summary label
Aries-ckt Nov 14, 2023
6281910
feat:add summary label
Aries-ckt Nov 14, 2023
cdcfe7f
feat:add doc summary
Aries-ckt Nov 15, 2023
8be43c5
feat:add summary
Aries-ckt Nov 15, 2023
6253d3b
feat:summary update output
Aries-ckt Nov 15, 2023
fa06ba5
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 16, 2023
343d646
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 16, 2023
3e56009
feat:update scene param
Aries-ckt Nov 16, 2023
16a9951
fix:milvus metadata bug
Aries-ckt Nov 16, 2023
4049f52
feat:summary web
Aries-ckt Nov 16, 2023
b0dd2e7
Merge remote-tracking branch 'origin/main' into feat_rag_graph
Aries-ckt Nov 16, 2023
870aeb0
Merge remote-tracking branch 'origin/main' into feat_rag_graph
Aries-ckt Nov 17, 2023
a4c8aca
feat:summary update and merge main branch
Aries-ckt Nov 17, 2023
ea363a4
feat(ChatDB): ChatDB Use fintune model
yhjun1026 Nov 17, 2023
439cd90
feat:update summary prompt
Aries-ckt Nov 17, 2023
236cf95
feat:add model_enabe_cache in playload in basechat.py
Aries-ckt Nov 19, 2023
00bfa32
feat:0.4.2 web module
Aries-ckt Nov 19, 2023
d38c9c7
feat(ChatDB): ChatDB English Prompt fix
yhjun1026 Nov 20, 2023
8708a11
feat(ChatDB): ChatDB English Prompt fix
yhjun1026 Nov 20, 2023
fb2d5a2
feat:update v0.4.2 web module
Aries-ckt Nov 20, 2023
c755a6b
Merge remote-tracking branch 'origin/main' into feat_rag_graph
Aries-ckt Nov 20, 2023
8fb13a9
style:delete unusual assets
Aries-ckt Nov 20, 2023
70607f8
feat(ChatDB): ChatDB English Prompt fix
yhjun1026 Nov 20, 2023
90b7e63
Merge branch 'main' into Agent_Hub_Dev
yhjun1026 Nov 20, 2023
7b3682a
refactor:merge Agent_Hub branch
Aries-ckt Nov 20, 2023
fec82a7
style:delete milvus_store.py unusual code
Aries-ckt Nov 20, 2023
689f6bf
refactor:update v0.4.2 web
Aries-ckt Nov 20, 2023
de1ccd8
style:delete unusual code
Aries-ckt Nov 20, 2023
5216d23
style:fmt
Aries-ckt Nov 20, 2023
b8916a5
feat(ChatDB): ChatExcel Prompt optimization
yhjun1026 Nov 20, 2023
10dc225
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into feat_rag_graph
Aries-ckt Nov 20, 2023
dcd5583
feat(ChatDB): ChatDB change name to ChatData
yhjun1026 Nov 20, 2023
8e606df
feat(ChatDB): ChatDB change name to ChatData
yhjun1026 Nov 20, 2023
a6dd04f
feat(ChatDB): ChatDB change name to ChatData
yhjun1026 Nov 20, 2023
0da65cd
feat(ChatDB): ChatDB change name to ChatData
yhjun1026 Nov 20, 2023
2b14382
feat:update v0.4.2 web module
Aries-ckt Nov 20, 2023
d63b2d1
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into feat_rag_graph
Aries-ckt Nov 20, 2023
fd21a3a
feat(ChatData): ChatData change describe
yhjun1026 Nov 20, 2023
aad063b
Merge remote-tracking branch 'origin/Agent_Hub_Dev' into feat_rag_graph
Aries-ckt Nov 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style:fmt
Aries-ckt committed Oct 20, 2023
commit b0a9fb7810175e30963731628c8aab579fd8cb2a
20 changes: 14 additions & 6 deletions pilot/openapi/api_v1/editor/api_editor_v1.py
Original file line number Diff line number Diff line change
@@ -105,12 +105,16 @@ async def get_editor_sql(con_uid: str, round: int):
)
api_call = ApiCall()
result = {}
result['thoughts'] = element["data"]["content"]
if api_call.check_last_plugin_call_ready(element["data"]["content"]):
result["thoughts"] = element["data"]["content"]
if api_call.check_last_plugin_call_ready(
element["data"]["content"]
):
api_call.update_from_context(element["data"]["content"])
if len(api_call.plugin_status_map) > 0:
first_item = next(iter(api_call.plugin_status_map.items()))[1]
result['sql'] = first_item.args["sql"]
first_item = next(
iter(api_call.plugin_status_map.items())
)[1]
result["sql"] = first_item.args["sql"]
return Result.succ(result)
return Result.faild(msg="not have sql!")

@@ -165,13 +169,17 @@ async def sql_editor_submit(sql_edit_context: ChatSqlEditContext = Body()):
for element in edit_round["messages"]:
if element["type"] == "ai":
new_ai_text = element["data"]["content"]
new_ai_text.replace(sql_edit_context.old_sql, sql_edit_context.new_sql)
new_ai_text.replace(
sql_edit_context.old_sql, sql_edit_context.new_sql
)
element["data"]["content"] = new_ai_text

for element in edit_round["messages"]:
if element["type"] == "view":
api_call = ApiCall()
new_view_text = api_call.run_display_sql(new_ai_text, conn.run_to_df)
new_view_text = api_call.run_display_sql(
new_ai_text, conn.run_to_df
)
element["data"]["content"] = new_view_text
history_mem.update(history_messages)
return Result.succ(None)
1 change: 1 addition & 0 deletions pilot/scene/chat_db/auto_execute/chat.py
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ def stream_plugin_call(self, text):
text = text.replace("\n", " ")
print(f"stream_plugin_call:{text}")
return self.api_call.run_display_sql(text, self.database.run_to_df)

#
# def do_action(self, prompt_response):
# print(f"do_action:{prompt_response}")