Update sidebar order (#1506)

* Remove beta flag from components

* Remove beta flag from APIRequest class

* Add beta flag to experimental components

* Remove beta flag from APIRequest, ChromaComponent, ChromaSearchComponent, and LCVectorStoreComponent
This commit is contained in:
Carlos Coelho 2024-03-07 18:43:27 -03:00 • committed by GitHub
commit 6e06b15f74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 12 additions and 18 deletions

View file

@ -13,7 +13,6 @@ class APIRequest(CustomComponent):
description: str = "Make an HTTP request to the given URL." description: str = "Make an HTTP request to the given URL."
output_types: list[str] = ["Record"] output_types: list[str] = ["Record"]
documentation: str = "https://docs.langflow.org/components/utilities#api-request" documentation: str = "https://docs.langflow.org/components/utilities#api-request"
beta: bool = True
field_config = { field_config = {
"url": {"display_name": "URL", "info": "The URL to make the request to."}, "url": {"display_name": "URL", "info": "The URL to make the request to."},
"method": { "method": {

View file

@ -8,7 +8,6 @@ from langflow.utils.constants import LOADERS_INFO
class FileLoaderComponent(CustomComponent): class FileLoaderComponent(CustomComponent):
display_name: str = "File Loader" display_name: str = "File Loader"
description: str = "Generic File Loader" description: str = "Generic File Loader"
beta = True
def build_config(self): def build_config(self):
loader_options = ["Automatic"] + [loader_info["name"] for loader_info in LOADERS_INFO] loader_options = ["Automatic"] + [loader_info["name"] for loader_info in LOADERS_INFO]

View file

@ -15,7 +15,6 @@ class AmazonBedrockEmeddingsComponent(CustomComponent):
display_name: str = "Amazon Bedrock Embeddings" display_name: str = "Amazon Bedrock Embeddings"
description: str = "Embeddings model from Amazon Bedrock." description: str = "Embeddings model from Amazon Bedrock."
documentation = "https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/bedrock" documentation = "https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/bedrock"
beta = True
def build_config(self): def build_config(self):
return { return {

View file

@ -13,7 +13,6 @@ class OllamaEmbeddingsComponent(CustomComponent):
display_name: str = "Ollama Embeddings" display_name: str = "Ollama Embeddings"
description: str = "Embeddings model from Ollama." description: str = "Embeddings model from Ollama."
documentation = "https://python.langchain.com/docs/integrations/text_embedding/ollama" documentation = "https://python.langchain.com/docs/integrations/text_embedding/ollama"
beta = True
def build_config(self): def build_config(self):
return { return {

View file

@ -5,6 +5,7 @@ from langflow.memory import delete_messages, get_messages
class ClearMessageHistoryComponent(CustomComponent): class ClearMessageHistoryComponent(CustomComponent):
display_name = "Clear Message History" display_name = "Clear Message History"
description = "A component to clear the message history." description = "A component to clear the message history."
beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class ExtractKeyFromRecordComponent(CustomComponent): class ExtractKeyFromRecordComponent(CustomComponent):
display_name = "Extract Key From Record" display_name = "Extract Key From Record"
description = "Extracts a key from a record." description = "Extracts a key from a record."
beta: bool = True
field_config = { field_config = {
"record": {"display_name": "Record"}, "record": {"display_name": "Record"},

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class GetNotifiedComponent(CustomComponent): class GetNotifiedComponent(CustomComponent):
display_name = "Get Notified" display_name = "Get Notified"
description = "A component to get notified by Notify component." description = "A component to get notified by Notify component."
beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -7,6 +7,7 @@ from langflow.schema import Record
class ListFlowsComponent(CustomComponent): class ListFlowsComponent(CustomComponent):
display_name = "List Flows" display_name = "List Flows"
description = "A component to list all available flows." description = "A component to list all available flows."
beta: bool = True
def build_config(self): def build_config(self):
return {} return {}

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class MergeRecordsComponent(CustomComponent): class MergeRecordsComponent(CustomComponent):
display_name = "Merge Records" display_name = "Merge Records"
description = "Merges records." description = "Merges records."
beta: bool = True
field_config = { field_config = {
"records": {"display_name": "Records"}, "records": {"display_name": "Records"},

View file

@ -8,6 +8,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 messages." description = "Used to retrieve stored messages."
beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -7,6 +7,7 @@ from langflow.schema import Record
class NotifyComponent(CustomComponent): class NotifyComponent(CustomComponent):
display_name = "Notify" display_name = "Notify"
description = "A component to generate a notification to Get Notified component." description = "A component to generate a notification to Get Notified component."
beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -9,6 +9,7 @@ from langflow.schema import Record
class RunFlowComponent(CustomComponent): class RunFlowComponent(CustomComponent):
display_name = "Run Flow" display_name = "Run Flow"
description = "A component to run a flow." description = "A component to run a flow."
beta: bool = True
def get_flow_names(self) -> List[str]: def get_flow_names(self) -> List[str]:
flow_records = self.list_flows() flow_records = self.list_flows()

View file

@ -7,7 +7,7 @@ from langflow.field_typing import Text
class RunnableExecComponent(CustomComponent): class RunnableExecComponent(CustomComponent):
documentation: str = "http://docs.langflow.org/components/custom" documentation: str = "http://docs.langflow.org/components/custom"
display_name = "Runnable Executor" display_name = "Runnable Executor"
beta = True beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -8,6 +8,7 @@ from langflow.field_typing import Text
class SQLExecutorComponent(CustomComponent): class SQLExecutorComponent(CustomComponent):
display_name = "SQL Executor" display_name = "SQL Executor"
description = "Execute SQL query." description = "Execute SQL query."
beta: bool = True
def build_config(self): def build_config(self):
return { return {

View file

@ -9,6 +9,7 @@ class TextToRecordComponent(CustomComponent):
display_name = "Text to Record" display_name = "Text to Record"
description = "A component to create a record from key-value pairs." description = "A component to create a record from key-value pairs."
field_order = ["mode", "keys", "n_keys"] field_order = ["mode", "keys", "n_keys"]
beta: bool = True
def set_key_template(self, build_config, field_value): def set_key_template(self, build_config, field_value):
keys_template = TemplateField( keys_template = TemplateField(

View file

@ -8,7 +8,6 @@ from langflow.field_typing import Prompt, TemplateField, Text
class PromptComponent(CustomComponent): class PromptComponent(CustomComponent):
display_name: str = "Prompt" display_name: str = "Prompt"
description: str = "A component for creating prompts using templates" description: str = "A component for creating prompts using templates"
beta = True
icon = "terminal-square" icon = "terminal-square"
def build_config(self): def build_config(self):

View file

@ -20,7 +20,6 @@ class JSONDocumentBuilder(CustomComponent):
display_name: str = "JSON Document Builder" display_name: str = "JSON Document Builder"
description: str = "Build a Document containing a JSON object using a key and another Document page content." description: str = "Build a Document containing a JSON object using a key and another Document page content."
output_types: list[str] = ["Document"] output_types: list[str] = ["Document"]
beta = True
documentation: str = "https://docs.langflow.org/components/utilities#json-document-builder" documentation: str = "https://docs.langflow.org/components/utilities#json-document-builder"
field_config = { field_config = {

View file

@ -16,7 +16,6 @@ class VectaraSelfQueryRetriverComponent(CustomComponent):
display_name: str = "Vectara Self Query Retriever for Vectara Vector Store" display_name: str = "Vectara Self Query Retriever for Vectara Vector Store"
description: str = "Implementation of Vectara Self Query Retriever" description: str = "Implementation of Vectara Self Query Retriever"
documentation = "https://python.langchain.com/docs/integrations/retrievers/self_query/vectara_self_query" documentation = "https://python.langchain.com/docs/integrations/retrievers/self_query/vectara_self_query"
beta = True
icon = "Vectara" icon = "Vectara"
field_config = { field_config = {

View file

@ -18,7 +18,6 @@ class ChromaComponent(CustomComponent):
display_name: str = "Chroma" display_name: str = "Chroma"
description: str = "Implementation of Vector Store using Chroma" description: str = "Implementation of Vector Store using Chroma"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/chroma" documentation = "https://python.langchain.com/docs/integrations/vectorstores/chroma"
beta: bool = True
icon = "Chroma" icon = "Chroma"
def build_config(self): def build_config(self):

View file

@ -15,7 +15,6 @@ class ChromaSearchComponent(LCVectorStoreComponent):
display_name: str = "Chroma Search" display_name: str = "Chroma Search"
description: str = "Search a Chroma collection for similar documents." description: str = "Search a Chroma collection for similar documents."
beta: bool = True
icon = "Chroma" icon = "Chroma"
def build_config(self): def build_config(self):

View file

@ -17,7 +17,6 @@ class RedisComponent(CustomComponent):
display_name: str = "Redis" display_name: str = "Redis"
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"
beta = True
def build_config(self): def build_config(self):
""" """

View file

@ -16,7 +16,6 @@ class RedisSearchComponent(RedisComponent, LCVectorStoreComponent):
display_name: str = "Redis Search" display_name: str = "Redis Search"
description: str = "Search a Redis Vector Store for similar documents." description: str = "Search a Redis Vector Store for similar documents."
documentation = "https://python.langchain.com/docs/integrations/vectorstores/redis" documentation = "https://python.langchain.com/docs/integrations/vectorstores/redis"
beta = True
def build_config(self): def build_config(self):
""" """

View file

@ -16,7 +16,6 @@ class VectaraComponent(CustomComponent):
display_name: str = "Vectara" display_name: str = "Vectara"
description: str = "Implementation of Vector Store using Vectara" description: str = "Implementation of Vector Store using Vectara"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/vectara" documentation = "https://python.langchain.com/docs/integrations/vectorstores/vectara"
beta = True
icon = "Vectara" icon = "Vectara"
field_config = { field_config = {
"vectara_customer_id": { "vectara_customer_id": {

View file

@ -12,7 +12,6 @@ class VectaraSearchComponent(VectaraComponent, LCVectorStoreComponent):
display_name: str = "Vectara Search" display_name: str = "Vectara Search"
description: str = "Search a Vectara Vector Store for similar documents." description: str = "Search a Vectara Vector Store for similar documents."
documentation = "https://python.langchain.com/docs/integrations/vectorstores/vectara" documentation = "https://python.langchain.com/docs/integrations/vectorstores/vectara"
beta = True
icon = "Vectara" icon = "Vectara"
field_config = { field_config = {

View file

@ -13,7 +13,6 @@ class WeaviateVectorStoreComponent(CustomComponent):
display_name: str = "Weaviate" display_name: str = "Weaviate"
description: str = "Implementation of Vector Store using Weaviate" description: str = "Implementation of Vector Store using Weaviate"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/weaviate" documentation = "https://python.langchain.com/docs/integrations/vectorstores/weaviate"
beta = True
field_config = { field_config = {
"url": {"display_name": "Weaviate URL", "value": "http://localhost:8080"}, "url": {"display_name": "Weaviate URL", "value": "http://localhost:8080"},
"api_key": { "api_key": {

View file

@ -12,7 +12,6 @@ class WeaviateSearchVectorStore(WeaviateVectorStoreComponent, LCVectorStoreCompo
display_name: str = "Weaviate Search" display_name: str = "Weaviate Search"
description: str = "Search a Weaviate Vector Store for similar documents." description: str = "Search a Weaviate Vector Store for similar documents."
documentation = "https://python.langchain.com/docs/integrations/vectorstores/weaviate" documentation = "https://python.langchain.com/docs/integrations/vectorstores/weaviate"
beta = True
icon = "Weaviate" icon = "Weaviate"
field_config = { field_config = {

View file

@ -13,7 +13,6 @@ from langflow.schema import Record
class LCVectorStoreComponent(CustomComponent): class LCVectorStoreComponent(CustomComponent):
display_name: str = "LC Vector Store" display_name: str = "LC Vector Store"
description: str = "Search a LC Vector Store for similar documents." description: str = "Search a LC Vector Store for similar documents."
beta: bool = True
def search_with_vector_store( def search_with_vector_store(
self, self,

View file

@ -48,7 +48,7 @@ class CustomComponentFrontendNode(FrontendNode):
_format_template: bool = False _format_template: bool = False
name: str = "CustomComponent" name: str = "CustomComponent"
display_name: Optional[str] = "CustomComponent" display_name: Optional[str] = "CustomComponent"
beta: bool = True beta: bool = False
template: Template = Template( template: Template = Template(
type_name="CustomComponent", type_name="CustomComponent",
fields=[ fields=[