-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from logspace-ai/dev
- Loading branch information
Showing
38 changed files
with
906 additions
and
238 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
chains: | ||
- LLMChain | ||
- LLMMathChain | ||
- LLMChecker | ||
# - ConversationChain | ||
|
||
agents: | ||
- ZeroShotAgent | ||
|
||
prompts: | ||
- PromptTemplate | ||
- FewShotPromptTemplate | ||
|
||
llms: | ||
- OpenAI | ||
- OpenAIChat | ||
|
||
tools: | ||
- Search | ||
- PAL-MATH | ||
- Calculator | ||
- Serper Search | ||
|
||
memories: | ||
# - ConversationBufferMemory | ||
|
||
dev: false |
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,6 +1,43 @@ | ||
## LLM | ||
from typing import Any | ||
|
||
from langchain import llms | ||
from langchain.llms.openai import OpenAIChat | ||
|
||
|
||
llm_type_to_cls_dict = llms.type_to_cls_dict | ||
llm_type_to_cls_dict["openai-chat"] = OpenAIChat | ||
|
||
|
||
## Memory | ||
|
||
# from langchain.memory.buffer_window import ConversationBufferWindowMemory | ||
# from langchain.memory.chat_memory import ChatMessageHistory | ||
# from langchain.memory.combined import CombinedMemory | ||
# from langchain.memory.entity import ConversationEntityMemory | ||
# from langchain.memory.kg import ConversationKGMemory | ||
# from langchain.memory.readonly import ReadOnlySharedMemory | ||
# from langchain.memory.simple import SimpleMemory | ||
# from langchain.memory.summary import ConversationSummaryMemory | ||
# from langchain.memory.summary_buffer import ConversationSummaryBufferMemory | ||
|
||
memory_type_to_cls_dict: dict[str, Any] = { | ||
# "CombinedMemory": CombinedMemory, | ||
# "ConversationBufferWindowMemory": ConversationBufferWindowMemory, | ||
# "ConversationBufferMemory": ConversationBufferMemory, | ||
# "SimpleMemory": SimpleMemory, | ||
# "ConversationSummaryBufferMemory": ConversationSummaryBufferMemory, | ||
# "ConversationKGMemory": ConversationKGMemory, | ||
# "ConversationEntityMemory": ConversationEntityMemory, | ||
# "ConversationSummaryMemory": ConversationSummaryMemory, | ||
# "ChatMessageHistory": ChatMessageHistory, | ||
# "ConversationStringBufferMemory": ConversationStringBufferMemory, | ||
# "ReadOnlySharedMemory": ReadOnlySharedMemory, | ||
} | ||
|
||
|
||
## Chain | ||
# from langchain.chains.loading import type_to_loader_dict | ||
# from langchain.chains.conversation.base import ConversationChain | ||
|
||
# chain_type_to_cls_dict = type_to_loader_dict | ||
# chain_type_to_cls_dict["conversation_chain"] = ConversationChain |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
import io | ||
import re | ||
from typing import Any, Dict | ||
|
||
from langflow.interface import loading | ||
|
||
|
||
|
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
Oops, something went wrong.