feat: change icons, colors and fix minor bug
This commit is contained in:
parent
fee2e52ec1
commit
a6644176d4
2 changed files with 12 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ class TextLoader(BaseLoader):
|
||||||
|
|
||||||
def load(self) -> List[Document]:
|
def load(self) -> List[Document]:
|
||||||
"""Load from file path."""
|
"""Load from file path."""
|
||||||
documents = [Document(page_content=self.file, metadata={"source": "loaded"})]
|
return [Document(page_content=self.file, metadata={"source": "loaded"})]
|
||||||
|
|
||||||
|
|
||||||
CUSTOM_DOCUMENTLOADERS = {
|
CUSTOM_DOCUMENTLOADERS = {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@ import {
|
||||||
GiftIcon,
|
GiftIcon,
|
||||||
PaperClipIcon,
|
PaperClipIcon,
|
||||||
QuestionMarkCircleIcon,
|
QuestionMarkCircleIcon,
|
||||||
|
FingerPrintIcon,
|
||||||
|
ScissorsIcon,
|
||||||
|
CircleStackIcon
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
|
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
|
||||||
import { FlowType } from "./types/flow";
|
import { FlowType } from "./types/flow";
|
||||||
|
|
@ -72,14 +75,14 @@ export const nodeColors: {[char: string]: string} = {
|
||||||
chains: "#FE7500",
|
chains: "#FE7500",
|
||||||
agents: "#903BBE",
|
agents: "#903BBE",
|
||||||
tools: "#FF3434",
|
tools: "#FF3434",
|
||||||
memories: "#FF9135",
|
memories: "#F5B85A",
|
||||||
advanced: "#000000",
|
advanced: "#000000",
|
||||||
chat: "#454173",
|
chat: "#454173",
|
||||||
thought:"#272541",
|
thought:"#272541",
|
||||||
embeddings:"#FF9135",
|
embeddings:"#42BAA7",
|
||||||
documentloaders:"#FF9135",
|
documentloaders:"#7AAE42",
|
||||||
vectorstores: "#FF9135",
|
vectorstores: "#AA8742",
|
||||||
textsplitters: "#FF9135",
|
textsplitters: "#B47CB5",
|
||||||
toolkits:"#DB2C2C",
|
toolkits:"#DB2C2C",
|
||||||
wrappers:"#E6277A",
|
wrappers:"#E6277A",
|
||||||
unknown:"#9CA3AF"
|
unknown:"#9CA3AF"
|
||||||
|
|
@ -112,11 +115,11 @@ export const nodeIcons:{[char: string]: React.ForwardRefExoticComponent<React.SV
|
||||||
tools: WrenchIcon,
|
tools: WrenchIcon,
|
||||||
advanced: ComputerDesktopIcon,
|
advanced: ComputerDesktopIcon,
|
||||||
chat: Bars3CenterLeftIcon,
|
chat: Bars3CenterLeftIcon,
|
||||||
embeddings:PaperClipIcon,
|
embeddings:FingerPrintIcon,
|
||||||
documentloaders:PaperClipIcon,
|
documentloaders:PaperClipIcon,
|
||||||
vectorstores: PaperClipIcon,
|
vectorstores: CircleStackIcon,
|
||||||
toolkits:WrenchScrewdriverIcon,
|
toolkits:WrenchScrewdriverIcon,
|
||||||
textsplitters:PaperClipIcon,
|
textsplitters:ScissorsIcon,
|
||||||
wrappers:GiftIcon,
|
wrappers:GiftIcon,
|
||||||
unknown:QuestionMarkCircleIcon
|
unknown:QuestionMarkCircleIcon
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue