Update component descriptions
This commit is contained in:
parent
cb64e6ba23
commit
7d1fde6e7f
22 changed files with 27 additions and 27 deletions
|
|
@ -7,7 +7,7 @@ from langflow.schema import Record
|
|||
|
||||
|
||||
class FileComponent(CustomComponent):
|
||||
display_name = "Files"
|
||||
display_name = "File"
|
||||
description = "A generic file loader."
|
||||
|
||||
def build_config(self) -> Dict[str, Any]:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from langflow.schema import Record
|
|||
|
||||
class URLComponent(CustomComponent):
|
||||
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]:
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from langflow.schema import Record
|
|||
|
||||
class CreateRecordComponent(CustomComponent):
|
||||
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
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -11,5 +12,5 @@ class Component(CustomComponent):
|
|||
def build_config(self):
|
||||
return {"param": {"display_name": "Parameter"}}
|
||||
|
||||
def build(self, param: Data) -> Data:
|
||||
return param
|
||||
def build(self, param: str) -> Record:
|
||||
return Record(data=param)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from langflow.schema import Record
|
|||
|
||||
class MessageHistoryComponent(CustomComponent):
|
||||
display_name = "Message History"
|
||||
description = "Used to retrieve stored chat messages."
|
||||
description = "Retrieves stored chat messages given a specific Session ID."
|
||||
beta: bool = True
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ from langflow.schema import Record
|
|||
|
||||
class RecordsToTextComponent(CustomComponent):
|
||||
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):
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from langflow.schema import Record
|
|||
|
||||
class UpdateRecordComponent(CustomComponent):
|
||||
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):
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from langflow.schema import Record
|
|||
|
||||
class ChatInput(ChatComponent):
|
||||
display_name = "Chat Input"
|
||||
description = "Capture user inputs from the chat interface."
|
||||
description = "Get chat inputs from the Interaction Panel."
|
||||
icon = "ChatInput"
|
||||
|
||||
def build(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from langflow.interface.custom.custom_component import CustomComponent
|
|||
|
||||
class PromptComponent(CustomComponent):
|
||||
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"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class TextInput(TextComponent):
|
||||
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):
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class AmazonBedrockComponent(LCModelComponent):
|
||||
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"
|
||||
field_order = [
|
||||
"model_id",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class AnthropicLLM(LCModelComponent):
|
||||
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"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class AzureChatOpenAIComponent(LCModelComponent):
|
||||
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"
|
||||
beta = False
|
||||
icon = "Azure"
|
||||
|
|
|
|||
|
|
@ -9,10 +9,8 @@ from langflow.field_typing import Text
|
|||
|
||||
class QianfanChatEndpointComponent(LCModelComponent):
|
||||
display_name: str = "Qianfan"
|
||||
description: str = (
|
||||
"Generate text using Baidu Qianfan chat models. Get more detail from "
|
||||
"https://python.langchain.com/docs/integrations/chat/baidu_qianfan_endpoint."
|
||||
)
|
||||
description: str = "Generate text using Baidu Qianfan LLMs."
|
||||
documentation: str = "https://python.langchain.com/docs/integrations/chat/baidu_qianfan_endpoint."
|
||||
icon = "BaiduQianfan"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class CohereComponent(LCModelComponent):
|
||||
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"
|
||||
|
||||
icon = "Cohere"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from langflow.field_typing import RangeSpec, Text
|
|||
|
||||
class GoogleGenerativeAIComponent(LCModelComponent):
|
||||
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 = "Google"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class HuggingFaceEndpointsComponent(LCModelComponent):
|
||||
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"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class ChatOllamaComponent(LCModelComponent):
|
||||
display_name = "Ollama"
|
||||
description = "Generate text using Local LLM for chat with Ollama."
|
||||
description = "Generate text using Ollama Local LLMs."
|
||||
icon = "Ollama"
|
||||
|
||||
def build_config(self) -> dict:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from langflow.field_typing import NestedDict, Text
|
|||
|
||||
class OpenAIModelComponent(LCModelComponent):
|
||||
display_name = "OpenAI"
|
||||
description = "Generates text using OpenAI's models."
|
||||
description = "Generates text using OpenAI LLMs."
|
||||
icon = "OpenAI"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class ChatVertexAIComponent(LCModelComponent):
|
||||
display_name = "Vertex AI"
|
||||
description = "Generate text using Vertex AI Chat large language models API."
|
||||
description = "Generate text using Vertex AI LLMs."
|
||||
icon = "VertexAI"
|
||||
|
||||
def build_config(self):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from langflow.schema import Record
|
|||
|
||||
class ChatOutput(ChatComponent):
|
||||
display_name = "Chat Output"
|
||||
description = "Used to send a chat message."
|
||||
description = "Display a chat message in the Interaction Panel."
|
||||
icon = "ChatOutput"
|
||||
|
||||
def build(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from langflow.field_typing import Text
|
|||
|
||||
class TextOutput(TextComponent):
|
||||
display_name = "Text Output"
|
||||
description = "Used to send a text output."
|
||||
description = "Display a text output in the Interaction Panel."
|
||||
|
||||
def build_config(self):
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue