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."
output_types: list[str] = ["Record"]
documentation: str = "https://docs.langflow.org/components/utilities#api-request"
beta: bool = True
field_config = {
"url": {"display_name": "URL", "info": "The URL to make the request to."},
"method": {

View file

@ -8,7 +8,6 @@ from langflow.utils.constants import LOADERS_INFO
class FileLoaderComponent(CustomComponent):
display_name: str = "File Loader"
description: str = "Generic File Loader"
beta = True
def build_config(self):
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"
description: str = "Embeddings model from Amazon Bedrock."
documentation = "https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/bedrock"
beta = True
def build_config(self):
return {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -8,6 +8,7 @@ from langflow.schema import Record
class MessageHistoryComponent(CustomComponent):
display_name = "Message History"
description = "Used to retrieve stored messages."
beta: bool = True
def build_config(self):
return {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,7 +17,6 @@ class RedisComponent(CustomComponent):
display_name: str = "Redis"
description: str = "Implementation of Vector Store using Redis"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/redis"
beta = True
def build_config(self):
"""

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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