feat: rename MetaphorToolkit file to ExaSearchToolkit and update component icons (#4754)

This commit is contained in:
Cristhian Zanforlin Lousa 2024-11-22 00:31:27 -03:00 • committed by GitHub
commit 13321a3635
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 5 deletions

View file

@ -5,10 +5,10 @@ from langchain_core._api.deprecation import LangChainDeprecationWarning
from .bing_search_api import BingSearchAPIComponent from .bing_search_api import BingSearchAPIComponent
from .calculator import CalculatorToolComponent from .calculator import CalculatorToolComponent
from .duck_duck_go_search_run import DuckDuckGoSearchComponent from .duck_duck_go_search_run import DuckDuckGoSearchComponent
from .exa_search import ExaSearchToolkit
from .glean_search_api import GleanSearchAPIComponent from .glean_search_api import GleanSearchAPIComponent
from .google_search_api import GoogleSearchAPIComponent from .google_search_api import GoogleSearchAPIComponent
from .google_serper_api import GoogleSerperAPIComponent from .google_serper_api import GoogleSerperAPIComponent
from .metaphor import MetaphorToolkit
from .python_code_structured_tool import PythonCodeStructuredTool from .python_code_structured_tool import PythonCodeStructuredTool
from .python_repl import PythonREPLToolComponent from .python_repl import PythonREPLToolComponent
from .retriever import RetrieverToolComponent from .retriever import RetrieverToolComponent
@ -36,7 +36,7 @@ __all__ = [
"GleanSearchAPIComponent", "GleanSearchAPIComponent",
"GoogleSearchAPIComponent", "GoogleSearchAPIComponent",
"GoogleSerperAPIComponent", "GoogleSerperAPIComponent",
"MetaphorToolkit", "ExaSearchToolkit",
"PythonCodeStructuredTool", "PythonCodeStructuredTool",
"PythonREPLToolComponent", "PythonREPLToolComponent",
"RetrieverToolComponent", "RetrieverToolComponent",

View file

@ -6,12 +6,13 @@ from langflow.field_typing import Tool
from langflow.io import BoolInput, IntInput, Output, SecretStrInput from langflow.io import BoolInput, IntInput, Output, SecretStrInput
class MetaphorToolkit(Component): class ExaSearchToolkit(Component):
display_name = "Exa Search" display_name = "Exa Search"
description = "Exa Search toolkit for search and content retrieval" description = "Exa Search toolkit for search and content retrieval"
documentation = "https://python.langchain.com/docs/integrations/tools/metaphor_search" documentation = "https://python.langchain.com/docs/integrations/tools/metaphor_search"
beta = True beta = True
name = "ExaSearch" name = "ExaSearch"
icon = "ExaSearch"
inputs = [ inputs = [
SecretStrInput( SecretStrInput(

View file

@ -19,6 +19,8 @@ topics, delivering structured responses."""
SecretStrInput(name="app_id", display_name="App ID", required=True), SecretStrInput(name="app_id", display_name="App ID", required=True),
] ]
icon = "WolframAlphaAPI"
def run_model(self) -> list[Data]: def run_model(self) -> list[Data]:
wrapper = self._build_wrapper() wrapper = self._build_wrapper()
result_str = wrapper.run(self.input_value) result_str = wrapper.run(self.input_value)

View file

@ -12,7 +12,7 @@ class PGVectorStoreComponent(LCVectorStoreComponent):
description = "PGVector Vector Store with search capabilities" description = "PGVector Vector Store with search capabilities"
documentation = "https://python.langchain.com/v0.2/docs/integrations/vectorstores/pgvector/" documentation = "https://python.langchain.com/v0.2/docs/integrations/vectorstores/pgvector/"
name = "pgvector" name = "pgvector"
icon = "PGVector" icon = "cpu"
inputs = [ inputs = [
SecretStrInput(name="pg_server_url", display_name="PostgreSQL Server Connection String", required=True), SecretStrInput(name="pg_server_url", display_name="PostgreSQL Server Connection String", required=True),

View file

@ -16,6 +16,7 @@ class RedisVectorStoreComponent(LCVectorStoreComponent):
description: str = "Implementation of Vector Store using Redis" description: str = "Implementation of Vector Store using Redis"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/redis" documentation = "https://python.langchain.com/docs/integrations/vectorstores/redis"
name = "Redis" name = "Redis"
icon = "Redis"
inputs = [ inputs = [
SecretStrInput(name="redis_server_url", display_name="Redis Server Connection String", required=True), SecretStrInput(name="redis_server_url", display_name="Redis Server Connection String", required=True),

View file

@ -663,7 +663,6 @@ export const nodeIconsLucide: iconsType = {
Discord: FaDiscord, Discord: FaDiscord,
MistralAI: MistralIcon, MistralAI: MistralIcon,
Upstash: UpstashSvgIcon, Upstash: UpstashSvgIcon,
PGVector: CpuIcon,
Confluence: ConfluenceIcon, Confluence: ConfluenceIcon,
AIML: AIMLIcon, AIML: AIMLIcon,
"AI/ML": AIMLIcon, "AI/ML": AIMLIcon,