Update component descriptions

This commit is contained in:
Rodrigo Nader 2024-03-29 21:42:59 -03:00
commit 7d1fde6e7f
22 changed files with 27 additions and 27 deletions

View file

@ -7,7 +7,7 @@ from langflow.schema import Record
class FileComponent(CustomComponent): class FileComponent(CustomComponent):
display_name = "Files" display_name = "File"
description = "A generic file loader." description = "A generic file loader."
def build_config(self) -> Dict[str, Any]: def build_config(self) -> Dict[str, Any]:

View file

@ -8,7 +8,7 @@ from langflow.schema import Record
class URLComponent(CustomComponent): class URLComponent(CustomComponent):
display_name = "URL" display_name = "URL"
description = "Fetch text content given one or more URLs." description = "Fetch content from one or more URLs."
def build_config(self) -> Dict[str, Any]: def build_config(self) -> Dict[str, Any]:
return { return {

View file

@ -4,7 +4,7 @@ from langflow.schema import Record
class CreateRecordComponent(CustomComponent): class CreateRecordComponent(CustomComponent):
display_name = "Create Record" display_name = "Create Record"
description = "A component to create a record." description = "Create a Record structure using text-based key/value pairs."
beta: bool = True beta: bool = True
def build_config(self): def build_config(self):

View file

@ -1,4 +1,5 @@
from langflow.field_typing import Data # from langflow.field_typing import Data
from langflow.schema import Record
from langflow.interface.custom.custom_component import CustomComponent from langflow.interface.custom.custom_component import CustomComponent
@ -11,5 +12,5 @@ class Component(CustomComponent):
def build_config(self): def build_config(self):
return {"param": {"display_name": "Parameter"}} return {"param": {"display_name": "Parameter"}}
def build(self, param: Data) -> Data: def build(self, param: str) -> Record:
return param return Record(data=param)

View file

@ -7,7 +7,7 @@ from langflow.schema import Record
class MessageHistoryComponent(CustomComponent): class MessageHistoryComponent(CustomComponent):
display_name = "Message History" display_name = "Message History"
description = "Used to retrieve stored chat messages." description = "Retrieves stored chat messages given a specific Session ID."
beta: bool = True beta: bool = True
def build_config(self): def build_config(self):

View file

@ -6,7 +6,8 @@ from langflow.schema import Record
class RecordsToTextComponent(CustomComponent): class RecordsToTextComponent(CustomComponent):
display_name = "Records To Text" display_name = "Records To Text"
description = "Convert Records into plain text using a pre-defined template." description = "Convert Records into plain text following a specified template."
def build_config(self): def build_config(self):
return { return {

View file

@ -4,7 +4,7 @@ from langflow.schema import Record
class UpdateRecordComponent(CustomComponent): class UpdateRecordComponent(CustomComponent):
display_name = "Update Record" display_name = "Update Record"
description = "Updates a Record with new data. Akin to a Python dictionary update." description = "Update Record with text-based key/value pairs, similar to updating a Python dictionary."
def build_config(self): def build_config(self):
return { return {

View file

@ -7,7 +7,7 @@ from langflow.schema import Record
class ChatInput(ChatComponent): class ChatInput(ChatComponent):
display_name = "Chat Input" display_name = "Chat Input"
description = "Capture user inputs from the chat interface." description = "Get chat inputs from the Interaction Panel."
icon = "ChatInput" icon = "ChatInput"
def build( def build(

View file

@ -6,7 +6,7 @@ from langflow.interface.custom.custom_component import CustomComponent
class PromptComponent(CustomComponent): class PromptComponent(CustomComponent):
display_name: str = "Prompt" display_name: str = "Prompt"
description: str = "A component for creating prompt templates using dynamic variables." description: str = "Create prompt templates with dynamic variables. Prompts can help guide the behavior of a Language Model."
icon = "terminal-square" icon = "terminal-square"
def build_config(self): def build_config(self):

View file

@ -6,7 +6,7 @@ from langflow.field_typing import Text
class TextInput(TextComponent): class TextInput(TextComponent):
display_name = "Text Input" display_name = "Text Input"
description = "Capture Text or Record and send text inputs." description = "Get text inputs from the Interaction Panel."
def build_config(self): def build_config(self):
return { return {

View file

@ -8,7 +8,7 @@ from langflow.field_typing import Text
class AmazonBedrockComponent(LCModelComponent): class AmazonBedrockComponent(LCModelComponent):
display_name: str = "Amazon Bedrock" display_name: str = "Amazon Bedrock"
description: str = "Generate text using LLM model from Amazon Bedrock." description: str = "Generate text using Amazon Bedrock LLMs."
icon = "Amazon" icon = "Amazon"
field_order = [ field_order = [
"model_id", "model_id",

View file

@ -9,7 +9,7 @@ from langflow.field_typing import Text
class AnthropicLLM(LCModelComponent): class AnthropicLLM(LCModelComponent):
display_name: str = "Anthropic" display_name: str = "Anthropic"
description: str = "Generate text using Anthropic Chat&Completion large language models." description: str = "Generate text using Anthropic Chat&Completion LLMs."
icon = "Anthropic" icon = "Anthropic"
def build_config(self): def build_config(self):

View file

@ -9,7 +9,7 @@ from langflow.field_typing import Text
class AzureChatOpenAIComponent(LCModelComponent): class AzureChatOpenAIComponent(LCModelComponent):
display_name: str = "Azure OpenAI" display_name: str = "Azure OpenAI"
description: str = "Generate text using LLM model from Azure OpenAI." description: str = "Generate text using Azure OpenAI LLMs."
documentation: str = "https://python.langchain.com/docs/integrations/llms/azure_openai" documentation: str = "https://python.langchain.com/docs/integrations/llms/azure_openai"
beta = False beta = False
icon = "Azure" icon = "Azure"

View file

@ -9,10 +9,8 @@ from langflow.field_typing import Text
class QianfanChatEndpointComponent(LCModelComponent): class QianfanChatEndpointComponent(LCModelComponent):
display_name: str = "Qianfan" display_name: str = "Qianfan"
description: str = ( description: str = "Generate text using Baidu Qianfan LLMs."
"Generate text using Baidu Qianfan chat models. Get more detail from " documentation: str = "https://python.langchain.com/docs/integrations/chat/baidu_qianfan_endpoint."
"https://python.langchain.com/docs/integrations/chat/baidu_qianfan_endpoint."
)
icon = "BaiduQianfan" icon = "BaiduQianfan"
def build_config(self): def build_config(self):

View file

@ -10,7 +10,7 @@ from langflow.field_typing import Text
class CohereComponent(LCModelComponent): class CohereComponent(LCModelComponent):
display_name = "Cohere" display_name = "Cohere"
description = "Generate text using Cohere large language models." description = "Generate text using Cohere LLMs."
documentation = "https://python.langchain.com/docs/modules/model_io/models/llms/integrations/cohere" documentation = "https://python.langchain.com/docs/modules/model_io/models/llms/integrations/cohere"
icon = "Cohere" icon = "Cohere"

View file

@ -9,7 +9,7 @@ from langflow.field_typing import RangeSpec, Text
class GoogleGenerativeAIComponent(LCModelComponent): class GoogleGenerativeAIComponent(LCModelComponent):
display_name: str = "Google Generative AI" display_name: str = "Google Generative AI"
description: str = "Generate text using Google Generative AI to generate text." description: str = "Generate text using Google Generative AI."
icon = "GoogleGenerativeAI" icon = "GoogleGenerativeAI"
icon = "Google" icon = "Google"

View file

@ -9,7 +9,7 @@ from langflow.field_typing import Text
class HuggingFaceEndpointsComponent(LCModelComponent): class HuggingFaceEndpointsComponent(LCModelComponent):
display_name: str = "Hugging Face API" display_name: str = "Hugging Face API"
description: str = "Generate text using LLM model from Hugging Face Inference API." description: str = "Generate text using Hugging Face Inference APIs."
icon = "HuggingFace" icon = "HuggingFace"
def build_config(self): def build_config(self):

View file

@ -14,7 +14,7 @@ from langflow.field_typing import Text
class ChatOllamaComponent(LCModelComponent): class ChatOllamaComponent(LCModelComponent):
display_name = "Ollama" display_name = "Ollama"
description = "Generate text using Local LLM for chat with Ollama." description = "Generate text using Ollama Local LLMs."
icon = "Ollama" icon = "Ollama"
def build_config(self) -> dict: def build_config(self) -> dict:

View file

@ -8,7 +8,7 @@ from langflow.field_typing import NestedDict, Text
class OpenAIModelComponent(LCModelComponent): class OpenAIModelComponent(LCModelComponent):
display_name = "OpenAI" display_name = "OpenAI"
description = "Generates text using OpenAI's models." description = "Generates text using OpenAI LLMs."
icon = "OpenAI" icon = "OpenAI"
def build_config(self): def build_config(self):

View file

@ -8,7 +8,7 @@ from langflow.field_typing import Text
class ChatVertexAIComponent(LCModelComponent): class ChatVertexAIComponent(LCModelComponent):
display_name = "Vertex AI" display_name = "Vertex AI"
description = "Generate text using Vertex AI Chat large language models API." description = "Generate text using Vertex AI LLMs."
icon = "VertexAI" icon = "VertexAI"
def build_config(self): def build_config(self):

View file

@ -7,7 +7,7 @@ from langflow.schema import Record
class ChatOutput(ChatComponent): class ChatOutput(ChatComponent):
display_name = "Chat Output" display_name = "Chat Output"
description = "Used to send a chat message." description = "Display a chat message in the Interaction Panel."
icon = "ChatOutput" icon = "ChatOutput"
def build( def build(

View file

@ -6,7 +6,7 @@ from langflow.field_typing import Text
class TextOutput(TextComponent): class TextOutput(TextComponent):
display_name = "Text Output" display_name = "Text Output"
description = "Used to send a text output." description = "Display a text output in the Interaction Panel."
def build_config(self): def build_config(self):
return { return {