-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
52 deletions.
There are no files selected for viewing
105 changes: 60 additions & 45 deletions
105
source/lambda/executor/utils/llm_utils/llm_chains/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,90 @@ | ||
from .llm_chain_base import LLMChain | ||
from .chat_chain import ( | ||
Baichuan2Chat13B4BitsChatChain, | ||
Claude2ChatChain, | ||
Claude3HaikuChatChain, | ||
Claude3SonnetChatChain, | ||
Claude21ChatChain, | ||
ClaudeInstanceChatChain, | ||
Iternlm2Chat7BChatChain, | ||
Iternlm2Chat20BChatChain, | ||
Baichuan2Chat13B4BitsChatChain, | ||
Claude3HaikuChatChain, | ||
Claude3SonnetChatChain | ||
) | ||
|
||
from .conversation_summary_chain import ( | ||
Iternlm2Chat7BConversationSummaryChain, | ||
ClaudeInstanceConversationSummaryChain, | ||
Claude21ConversationSummaryChain, | ||
Claude3HaikuConversationSummaryChain, | ||
Claude3SonnetConversationSummaryChain, | ||
Claude21ConversationSummaryChain, | ||
ClaudeInstanceConversationSummaryChain, | ||
Iternlm2Chat7BConversationSummaryChain, | ||
Iternlm2Chat20BConversationSummaryChain, | ||
) | ||
from .hyde_chain import ( | ||
Claude2HydeChain, | ||
Claude3HaikuHydeChain, | ||
Claude3SonnetHydeChain, | ||
Claude21HydeChain, | ||
ClaudeInstanceHydeChain, | ||
Iternlm2Chat7BHydeChain, | ||
Iternlm2Chat20BHydeChain, | ||
Iternlm2Chat20BConversationSummaryChain | ||
) | ||
|
||
from .intention_chain import ( | ||
Claude21IntentRecognitionChain, | ||
Claude2IntentRecognitionChain, | ||
ClaudeInstanceIntentRecognitionChain, | ||
Claude3HaikuIntentRecognitionChain, | ||
Claude3SonnetIntentRecognitionChain, | ||
Claude21IntentRecognitionChain, | ||
ClaudeInstanceIntentRecognitionChain, | ||
Iternlm2Chat7BIntentRecognitionChain, | ||
Iternlm2Chat20BIntentRecognitionChain, | ||
|
||
) | ||
from .llm_chain_base import LLMChain | ||
from .mkt_conversation_summary import ( | ||
Claude2MKTConversationSummaryChain, | ||
Claude3HaikuMKTConversationSummaryChain, | ||
Claude3SonnetMKTConversationSummaryChain, | ||
Claude21MKTConversationSummaryChain, | ||
ClaudeInstanceMKTConversationSummaryChain, | ||
Iternlm2Chat7BMKTConversationSummaryChain, | ||
Iternlm2Chat20BMKTConversationSummaryChain, | ||
) | ||
from .query_rewrite_chain import ( | ||
Claude2QueryRewriteChain, | ||
Claude3HaikuQueryRewriteChain, | ||
Claude3SonnetQueryRewriteChain, | ||
Claude21QueryRewriteChain, | ||
ClaudeInstanceQueryRewriteChain, | ||
Iternlm2Chat7BQueryRewriteChain, | ||
Iternlm2Chat20BQueryRewriteChain, | ||
) | ||
|
||
from .rag_chain import ( | ||
Baichuan2Chat13B4BitsKnowledgeQaChain, | ||
Claude21RagLLMChain, | ||
Claude2RagLLMChain, | ||
ClaudeInstanceRAGLLMChain, | ||
Claude3HaikuRAGLLMChain, | ||
Claude3SonnetRAGLLMChain, | ||
Claude21RagLLMChain, | ||
ClaudeInstanceRAGLLMChain, | ||
Baichuan2Chat13B4BitsKnowledgeQaChain, | ||
Iternlm2Chat7BKnowledgeQaChain, | ||
Iternlm2Chat20BKnowledgeQaChain, | ||
Iternlm2Chat20BKnowledgeQaChain | ||
) | ||
|
||
|
||
from .translate_chain import ( | ||
Iternlm2Chat7BTranslateChain, | ||
Iternlm2Chat20BTranslateChain | ||
) | ||
|
||
|
||
from .mkt_conversation_summary import ( | ||
Claude21MKTConversationSummaryChain, | ||
ClaudeInstanceMKTConversationSummaryChain, | ||
Claude2MKTConversationSummaryChain, | ||
Claude3HaikuMKTConversationSummaryChain, | ||
Claude3SonnetMKTConversationSummaryChain, | ||
Iternlm2Chat7BMKTConversationSummaryChain, | ||
Iternlm2Chat20BMKTConversationSummaryChain | ||
) | ||
|
||
from .stepback_chain import ( | ||
Claude21StepBackChain, | ||
ClaudeInstanceStepBackChain, | ||
Claude2StepBackChain, | ||
Claude3HaikuStepBackChain, | ||
Claude3SonnetStepBackChain, | ||
Claude21StepBackChain, | ||
ClaudeInstanceStepBackChain, | ||
Iternlm2Chat7BStepBackChain, | ||
Iternlm2Chat20BStepBackChain, | ||
Iternlm2Chat20BStepBackChain | ||
) | ||
|
||
|
||
from .hyde_chain import ( | ||
Claude21HydeChain, | ||
Claude2HydeChain, | ||
Claude3HaikuHydeChain, | ||
Claude3SonnetHydeChain, | ||
ClaudeInstanceHydeChain, | ||
Iternlm2Chat20BHydeChain, | ||
Iternlm2Chat7BHydeChain | ||
) | ||
|
||
from .query_rewrite_chain import ( | ||
Claude21QueryRewriteChain, | ||
Claude2QueryRewriteChain, | ||
ClaudeInstanceQueryRewriteChain, | ||
Claude3HaikuQueryRewriteChain, | ||
Claude3SonnetQueryRewriteChain, | ||
Iternlm2Chat20BQueryRewriteChain, | ||
Iternlm2Chat7BQueryRewriteChain | ||
) | ||
from .translate_chain import Iternlm2Chat7BTranslateChain, Iternlm2Chat20BTranslateChain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters