Fallback to a version that only uses "Refine" and update the prompt for ActionNode

This commit is contained in:
mannaandpoem 2024-01-02 18:24:02 +08:00
parent 6743a4f3b1
commit 6d9dfa73aa
5 changed files with 47 additions and 13 deletions

View file

@ -176,6 +176,32 @@ MMC2 = """sequenceDiagram
S-->>SE: return summary
SE-->>M: return summary"""
MMC2_INC = """sequenceDiagram
participant M as Main
participant SE as SearchEngine
participant I as Index
participant R as Ranking
participant S as Summary
participant KB as KnowledgeBase
M->>SE: search(query)
SE->>I: query_index(query)
I->>KB: fetch_data(query)
KB-->>I: return data
I-->>SE: return results
SE->>R: rank_results(results)
R-->>SE: return ranked_results
SE->>S: summarize_results(ranked_results)
S-->>SE: return summary
SE-->>M: return summary
M->>SE: newMethod() # Incremental change
SE->>I: newMethod() # Incremental change
I->>KB: newMethod() # Incremental change
KB-->>I: newMethod() # Incremental change
SE->>R: newMethod() # Incremental change
R-->>SE: newMethod() # Incremental change
SE->>S: newMethod() # Incremental change
S-->>SE: newMethod() # Incremental change
SE-->>M: newMethod() # Incremental change"""
if __name__ == "__main__":
loop = asyncio.new_event_loop()