Commit graph

  • 508c66cbaa 🐛 fix(endpoints.py): make inputs and tweaks optional in process_flow endpoint 🐛 fix(process.py): make inputs optional in process_graph_cached function The inputs and tweaks parameters in the process_flow endpoint are now optional, which allows for more flexibility in the API. The inputs parameter in the process_graph_cached function is now optional, which prevents a ValueError from being raised when a Chain object is processed without inputs. Gabriel Luiz Freitas Almeida 2023-06-23 08:40:43 -03:00
  • fed726b727 🚀 feat(memories.py): set default value for memory_key field to "chat_history" The memory_key field is now set to "chat_history" by default. This change ensures that the memory_key field is always initialized with a default value, which is useful for the application's functionality. Gabriel Luiz Freitas Almeida 2023-06-23 08:14:26 -03:00
  • 4dec5db45e 🔨 refactor(frontend): remove unnecessary empty object destructuring in LoadingSpinner component 🔨 refactor(frontend): simplify conditional rendering in InputFileComponent component 🔨 refactor(frontend): simplify arrow function in SupabaseIcon component The empty object destructuring in the LoadingSpinner component is unnecessary and can be removed. The conditional rendering in the InputFileComponent component can be simplified by removing unnecessary parentheses. The arrow function in the SupabaseIcon component can be simplified by removing unnecessary parentheses. Gabriel Luiz Freitas Almeida 2023-06-22 22:57:00 -03:00
  • 1c80135551 📦 chore(pyproject.toml): add types-appdirs package to poetry dependencies The types-appdirs package was added to the poetry dependencies to provide type hints for the appdirs package. This improves the codebase's maintainability and readability by providing better type checking and documentation. Gabriel Luiz Freitas Almeida 2023-06-22 22:56:38 -03:00
  • cf7cd979dc feat: Add ClassCodeExtractor and is_valid_class_template functions, and custom_component endpoint gustavoschaedler 2023-06-23 02:54:43 +01:00
  • 7a61791058 🐛 fix(chatMessage): remove unnecessary text-sm class from message sender name to improve readability Cristhian Zanforlin Lousa 2023-06-22 22:51:21 -03:00
  • bc1d6885ed 🔧 chore(frontend): fix formatting issues in multiple files 🚀 feat(frontend): add hover effect to file search icon in InputFileComponent 🚀 feat(frontend): add support for dark mode in alert icons 🚀 feat(frontend): add support for dark mode in dropdown chevron icon 🚀 feat(frontend): add support for dark mode in success alert icon 🚀 feat(frontend): add support for dark mode in notice alert icon 🚀 feat(frontend): add support for dark mode in error alert icon 🚀 feat(frontend): add support for process.env.PORT environment variable to be able to run app on a configurable port 🚀 feat(frontend): add parameter types to GenericNode component 🚀 feat(frontend): add hover effect to external link icon in CodeAreaComponent 🚀 feat(frontend): add hover effect to plus icon in MenuBar component 🚀 feat(frontend): add hover effect to settings icon in MenuBar component 🚀 feat(frontend): add hover effect to undo icon in MenuBar component 🚀 feat(frontend): add hover effect to redo icon in MenuBar component Cristhian Zanforlin Lousa 2023-06-22 22:49:42 -03:00
  • 198b2c6c75 🐛 fix(chatMessage): remove unnecessary text-sm class from message sender name to improve readability Cristhian Zanforlin Lousa 2023-06-22 22:47:37 -03:00
  • eb7f8838be 🔥 refactor(schemas.py): remove extra blank line in UploadFileResponse schema The extra blank line in the UploadFileResponse schema has been removed to improve code readability and consistency. Gabriel Luiz Freitas Almeida 2023-06-22 22:44:24 -03:00
  • 7f90956d20 🐛 fix(vector_store.py): add type ignore comments to suppress import errors The import statements for the weaviate and pinecone libraries were causing import errors. Adding the # type: ignore comment suppresses these errors and allows the code to run without issues. Gabriel Luiz Freitas Almeida 2023-06-22 22:43:59 -03:00
  • 4b5c3a0c53 🔨 refactor(process.py): add type hinting to function arguments This commit adds type hinting to the function arguments of get_result_and_thought and process_graph_cached functions in process.py file. This improves code readability and maintainability. Gabriel Luiz Freitas Almeida 2023-06-22 22:43:51 -03:00
  • 3c89e893e7 🔨 refactor(vectorstores.py): change import statement to import List from typing The import statement for Optional was changed to import List from typing to improve readability and consistency with the use of List in the code. Gabriel Luiz Freitas Almeida 2023-06-22 22:43:37 -03:00
  • 0c4e1f11e7 🎨 style(frontend): replace heroicons with lucide-react icons for consistency and smaller bundle size 🐛 fix(chatMessage): replace ChatBubbleOvalLeftEllipsisIcon with MessageCircle icon for consistency and better semantics Cristhian Zanforlin Lousa 2023-06-22 22:43:21 -03:00
  • 8bb11f66e9 🔺 chore(pyproject.toml): update langchain dependency from 0.0.208 to 0.0.209 This commit updates the langchain dependency from version 0.0.208 to version 0.0.209. This is a minor version update and is done to keep the dependency up-to-date with the latest features and bug fixes. Gabriel Luiz Freitas Almeida 2023-06-22 22:34:32 -03:00
  • 7e72ba43fa 🐛 fix(vector_store.py): fix variable naming to follow PEP8 guidelines The variables PINECONE_API_KEY and PINECONE_ENV were renamed to pinecone_api_key and pinecone_env, respectively, to follow PEP8 guidelines. Gabriel Luiz Freitas Almeida 2023-06-22 22:32:04 -03:00
  • d069ab5d6d 🚨 test(agents_template.py): add openai-multi-functions to the list of agents 🐛 fix(graph.py): change message variable to a dictionary to match the expected input of get_result_and_thought function and update the assertion to check if the result is a dictionary instead of a string The test for agents_template.py was updated to include the openai-multi-functions agent in the list of agents. This was done to ensure that the test coverage for the agent is complete. Gabriel Luiz Freitas Almeida 2023-06-22 22:31:13 -03:00
  • 7cebb8215f 🐛 fix(vector_store.py): remove redundant code and fix parameter naming The initialize_chroma function had redundant code that was removed. The embedding_function parameter was renamed to embedding to match the parameter name used in the class_object constructor. The documents and texts parameters were being used interchangeably, so the code was updated to use only documents. Gabriel Luiz Freitas Almeida 2023-06-22 22:18:01 -03:00
  • 1103a22870 feat(PageComponent): adjust minZoom and maxZoom values to improve user experience when zooming in and out of the flowchart. anovazzi1 2023-06-22 22:17:37 -03:00
  • 2d2d7e6c8c feat(PageComponent): add maxZoom prop to FlowChart to limit zooming to 4x to prevent visual artifacts and improve user experience anovazzi1 2023-06-22 22:16:31 -03:00
  • e3ee146b12 🔧 refactor(documentloaders.py): use Optional type hint for name parameter in format_field method The name parameter in the format_field method of the DocumentLoaderFrontNode class now uses the Optional type hint to indicate that it can be None. This improves the code's readability and makes it easier to understand the expected behavior of the method. Gabriel Luiz Freitas Almeida 2023-06-22 22:10:43 -03:00
  • 7da5197f35 🔨 refactor(vector_store.py): refactor initialize_supabase function to improve readability and remove redundant code The function now checks if "texts" is in the params dictionary and renames it to "documents" for consistency. The "supabase_url" and "supabase_service_key" are now removed from the params dictionary and passed directly to the create_client function. The function also removes the "documents" and "texts" keys from the params dictionary if there are no documents in the params. This improves the readability of the code and removes redundant code. Gabriel Luiz Freitas Almeida 2023-06-22 22:10:29 -03:00
  • c8a5edb9ab 🔊 chore(base.py): change log level of sorted vertices to debug The log level of the sorted vertices in the generator_build method of the Graph class has been changed from info to debug. This is because the sorted vertices are not critical information and are only useful for debugging purposes. Gabriel Luiz Freitas Almeida 2023-06-22 22:10:19 -03:00
  • 9417dd69f6 🐛 fix(vector_store.py): rename 'texts' parameter to 'documents' to improve semantics ✨ feat(vector_store.py): add support for Supabase client object to be passed in as a parameter The 'texts' parameter has been renamed to 'documents' to improve semantics. This change makes it clearer that the parameter is a list of documents. Additionally, support for a Supabase client object has been added as a parameter. This allows for more flexibility in the initialization of the SupabaseVectorStore class. Gabriel Luiz Freitas Almeida 2023-06-22 21:27:17 -03:00
  • c4f3476646 🆕 feat(config.yaml, utils.ts): add support for SupabaseVectorStore in vectorstores and add SupabaseIcon to nodeIcons The SupabaseVectorStore is now supported in the vectorstores configuration in the config.yaml file. The SupabaseIcon has been added to the nodeIcons object in the utils.ts file to be able to display the icon for the SupabaseVectorStore. Gabriel Luiz Freitas Almeida 2023-06-22 21:01:40 -03:00
  • fe9918cb8c 🚀 feat(vectorstores.py): add support for SupabaseVectorStore type The SupabaseVectorStore type requires additional fields such as table_name, query_name, supabase_url, and supabase_service_key. These fields are added to the extra_fields list and are then added to the list of fields that are displayed to the user. This change allows the user to create a SupabaseVectorStore with the required fields. Gabriel Luiz Freitas Almeida 2023-06-22 21:01:25 -03:00
  • 6fc57bff5e 🚀 feat(loading.py): add support for initializing new vector store types 🚀 feat(vector_store.py): add support for initializing SupabaseVectorStore This commit adds support for initializing new vector store types in the loading.py file. Specifically, the initialize_weaviate, initialize_faiss, and initialize_supabase functions were added to support the Weaviate, FAISS, and SupabaseVectorStore vector stores, respectively. The vector_store.py file was also updated to include the SupabaseVectorStore class and the initialize_supabase function. This allows for more flexibility in choosing vector stores for the application. Gabriel Luiz Freitas Almeida 2023-06-22 21:01:11 -03:00
  • 7da52ca9a1 ✨ feat(vector_store.py): add support for Supabase as a vector store The websockets version was downgraded to 10.3 to fix compatibility issues with other dependencies. Supabase was added to the dependencies to support it as a vector store. The initialize_supabase function was added to initialize the Supabase client and return the class object. This allows the use of Supabase as a vector store in the application. 🚀 chore(pyproject.toml): downgrade websockets version to 10.3 🚀 chore(pyproject.toml): add supabase to dependencies Gabriel Luiz Freitas Almeida 2023-06-22 21:00:46 -03:00
  • 4056cd09d4 fix(RadialProgress): round percentage value to nearest integer using Math.trunc() to improve display accuracy anovazzi1 2023-06-22 20:58:35 -03:00
  • 7050452473 feat(frontend): add SupabaseIcon component and its SVG file to the project to be used in the UI anovazzi1 2023-06-22 20:58:03 -03:00
  • 01545f316e fix(RadialProgress): round percentage value to nearest integer to improve readability and consistency anovazzi1 2023-06-22 20:53:52 -03:00
  • 0a0584c7ce Merge branch 'multipart_endpoint' of https://github.com/logspace-ai/langflow into multipart_endpoint Cristhian Zanforlin Lousa 2023-06-22 20:08:09 -03:00
  • 4470ca792c 🎨 style(inputFileComponent): add loading spinner to input file component to indicate file upload progress Cristhian Zanforlin Lousa 2023-06-22 20:08:03 -03:00
  • eda3b1cef6 📦 chore(pyproject.toml): add pinecone-client dependency to dev dependencies The pinecone-client dependency was added to the dev dependencies section of the pyproject.toml file. This was done to enable the use of Pinecone in the development environment. Gabriel Luiz Freitas Almeida 2023-06-22 19:59:56 -03:00
  • 9b4e65c121 🚀 feat(vector_store.py): add support for Weaviate and FAISS vector stores This commit adds support for Weaviate and FAISS vector stores to the existing Pinecone, Qdrant, and Chroma vector stores. The initialize_weaviate function initializes Weaviate and returns the class object. The initialize_faiss function initializes FAISS and returns the class object. These functions are used to initialize the respective vector stores. The docs_in_params function is used to check if there are documents in the parameters. Gabriel Luiz Freitas Almeida 2023-06-22 19:59:33 -03:00
  • 935b85a218 🚀 feat(vectorstores.py): add support for FAISS vector store type The FAISS vector store type is now supported and can be configured with the folder_path and index_name fields. The folder_path field specifies the local path to the FAISS index, while the index_name field specifies the name of the index. Additionally, a new client_kwargs field has been added to support additional client configuration options. Gabriel Luiz Freitas Almeida 2023-06-22 19:59:23 -03:00
  • f3e6db4df1 ✨ feat(chat.py): add error handling to stream_build function and improve log messages ✨ feat(schemas.py): add StreamData class to handle SSE messages ✨ feat(frontend): add RadialProgress and ProgressBar components 🔧 chore(frontend): add daisyui to project dependencies Cristhian Zanforlin Lousa 2023-06-22 19:48:37 -03:00
  • 76ce2f9cfa
    General BugFixes (#530) anovazzi1 2023-06-22 19:38:04 -03:00
  • 6ac10679a4 🎨 style(DisclosureComponent): replace ChevronRightIcon with ChevronRight from lucide-react to improve consistency with other icons 🎨 style(extraSidebarComponent): remove unused import of MagnifyingGlassIcon from heroicons-react/outline to improve code readability Cristhian Zanforlin Lousa 2023-06-22 19:35:00 -03:00
  • d936589c3d 🚀 feat(tools.py): add return_direct field to PythonFunctionToolNode The return_direct field is a boolean field that allows the user to specify whether the output of the Python function should be returned directly or wrapped in a dictionary. This field is added to the TemplateField list of the PythonFunctionToolNode class. Gabriel Luiz Freitas Almeida 2023-06-22 19:28:13 -03:00
  • 9255f66a5d 🐛 fix(manager.py): prevent base64 encoding of already encoded image data The code now checks if the image data is already a string before attempting to base64 encode it. This prevents double encoding of the image data. Gabriel Luiz Freitas Almeida 2023-06-22 19:22:30 -03:00
  • 49a2935ab3 🐛 fix(parameterComponent): fix key prop warning by generating random key using new function getRandomKeyByssmm ✨ feat(parameterComponent): add support for dynamic rendering of parameter component by grouping data by family 🐛 fix(menuBar): fix DropdownMenuTrigger component by adding asChild prop 🐛 fix(card.tsx): change p tag to div tag to fix accessibility issue 🐛 fix(extraSidebarComponent): fix key prop warning by adding key prop to Tooltip component ✨ feat(utils.ts): add new function getRandomKeyByssmm to generate random keys for components Cristhian Zanforlin Lousa 2023-06-22 19:22:04 -03:00
  • 2bad404c62 🐛 fix(constants.tsx): change payload key from "message" to "inputs" to match API requirements The payload key was changed from "message" to "inputs" to match the API requirements. This change ensures that the API can correctly parse the request payload. Gabriel Luiz Freitas Almeida 2023-06-22 19:22:04 -03:00
  • b548a642ff 🔥 refactor(schemas.py): remove commented out code for PredictRequest schema The commented out code for the PredictRequest schema has been removed as it is no longer needed and only adds clutter to the file. Gabriel Luiz Freitas Almeida 2023-06-22 19:04:48 -03:00
  • d5d6f7be57 🔨 refactor(schemas.py): rename PredictRequest to InputRequest and remove message field, add TweaksRequest and UpdateTemplateRequest ✨ feat(schemas.py): add ProcessResponse schema to represent the response of the process endpoint The PredictRequest schema has been renamed to InputRequest to better reflect its purpose. The message field has been removed as it is not needed. TweaksRequest has been added to represent the request body for the tweaks endpoint. UpdateTemplateRequest has been added to represent the request body for updating a template. ProcessResponse has been added to represent the response of the process endpoint, which returns a dictionary as the result. Gabriel Luiz Freitas Almeida 2023-06-22 19:04:19 -03:00
  • bfef9495f1 ✨ feat(vector_store.py): add support for initializing Pinecone and ChromaDB objects from existing indexes The code has been refactored to improve readability by adding type hints and reformatting the code. The initialize_pinecone and initialize_chroma functions have been updated to support initializing objects from existing indexes. If there are no docs in the params, the functions will return an existing index. If there are docs in the params, the functions will create a new index. The initialize_qdrant function has not been changed. 🔨 refactor(vector_store.py): improve code readability by adding type hints and reformatting code Gabriel Luiz Freitas Almeida 2023-06-22 19:03:53 -03:00
  • 60886a93c4 🔨 refactor(process.py): remove unused imports and variables, simplify get_result_and_thought function This commit removes unused imports and variables from the process.py file. The get_result_and_thought function has been simplified to take a dictionary of inputs instead of a single message string. The function now returns the output of the langchain_object instead of a tuple of result and thought. Gabriel Luiz Freitas Almeida 2023-06-22 19:03:35 -03:00
  • 2c44cde2e0 🚀 feat(memories.py): add input_key and output_key fields to MemoryFrontendNode template The MemoryFrontendNode template now includes two new fields, input_key and output_key, which are string fields that are not required and are shown in the advanced section of the template. These fields can be used to specify the input and output keys for the memory node. Gabriel Luiz Freitas Almeida 2023-06-22 19:03:05 -03:00
  • 176738987b 🔀 refactor(endpoints.py): rename predict_flow endpoint to process_flow and update its functionality 🔀 refactor(constants.tsx): update BASE_API_URL to reflect the changes in the predict_flow endpoint name The predict_flow endpoint has been renamed to process_flow to better reflect its functionality. The inputs are now passed as a dictionary instead of a PredictRequest object. The tweaks parameter is now optional and is passed as a dictionary. The response model has been updated to reflect the changes in the response. The BASE_API_URL constant in constants.tsx has been updated to reflect the changes in the endpoint name. Gabriel Luiz Freitas Almeida 2023-06-22 18:57:17 -03:00
  • 99d1002321 Removed dark mode carlosrcoelho 2023-06-22 18:38:44 -03:00
  • 19be2e8178 refactor(parameterComponent): change setTemplate to setNodeClass to improve semantics and fix bug refactor(codeAreaComponent): change template to nodeClass and setTemplate to setNodeClass to improve semantics refactor(API): change UpdateTemplate function parameter from template to nodeClass to improve semantics refactor(codeAreaModal): change template to nodeClass and setTemplate to setNodeClass to improve semantics and fix bug refactor(types): add APIClassType to import and change APITemplateType to import in relevant files to improve semantics anovazzi1 2023-06-22 18:21:41 -03:00
  • 37e1ea05b4 Base classes data moved gustavoschaedler 2023-06-22 22:15:59 +01:00
  • 531b3b3f7a Base classes data added gustavoschaedler 2023-06-22 21:49:22 +01:00
  • 2e9a665dd7 Removed commented file. carlosrcoelho 2023-06-22 17:38:14 -03:00
  • 6736288e6f Add code section gustavoschaedler 2023-06-22 21:37:01 +01:00
  • a47dc9ae92 feat(frontend): add support for updating node template on code change in CodeAreaModal fix(API): fix UpdateTemplate function return type to match the actual response fix(vite.config.ts): add dynamic_node route to apiRoutes array to proxy requests to backend anovazzi1 2023-06-22 17:30:04 -03:00
  • a458b2d91c Change type str to bool gustavoschaedler 2023-06-22 21:26:25 +01:00
  • b04e53cda0 adjusted text carlosrcoelho 2023-06-22 17:18:10 -03:00
  • 2c256421f4 Remove description gustavoschaedler 2023-06-22 21:16:10 +01:00
  • ec517fd9b6 Endpoint dynamic_node template to test gustavoschaedler 2023-06-22 21:00:02 +01:00
  • 9236ee21c8 🔨 refactor(NodeModal): add type any to Icon variable to avoid type conflict Cristhian Zanforlin Lousa 2023-06-22 16:40:59 -03:00
  • fe0aa91ed0 chore(GenericNode/index.tsx): import additional types from react to improve type safety anovazzi1 2023-06-22 16:37:06 -03:00
  • e7852bcd1a 🎨 style(parameterComponent): change nodeIcons import to nodeIconsLucide to match the new icon library 🎨 style(GenericNode): change nodeIcons import to nodeIconsLucide to match the new icon library 🎨 style(NodeModal): change Icon type to any to fix type error 🎨 style(chatInput): remove unnecessary array brackets 🎨 style(DisclosureComponent): change Icon size to 22 to match the new icon library 🎨 style(extraSidebarComponent): change nodeIcons import to nodeIconsLucide to match the new icon library and add Search icon 🎨 style(components/index): add SVGProps to import and change Icon type to any to fix type error Cristhian Zanforlin Lousa 2023-06-22 15:32:49 -03:00
  • e67e55d94e feat(API): add UpdateTemplate function to update templates via API call anovazzi1 2023-06-22 15:12:38 -03:00
  • 141c55643d 🚀 feat(vectorstores.py): add support for Pinecone vector store type The VectorStoreFrontendNode class now supports the Pinecone vector store type. Two new fields, pinecone_api_key and pinecone_env, have been added to the extra_fields list. The add_extra_fields method has been updated to add these fields to the template if the type_name is Pinecone. The add_field method has been updated to add all fields in the extra_fields list to the template. The add_field method has also been updated to remove the text_key field if the field name is "text_key". Finally, the fields list has been updated to include the new fields. Gabriel Luiz Freitas Almeida 2023-06-22 14:56:25 -03:00
  • 228127289b 🚀 feat(config.yaml): add GitLoader and Pinecone to documentloaders and vectorstores respectively GitLoader is added to documentloaders to allow loading of documents from a Git repository. Pinecone is added to vectorstores to allow for vector similarity search. These additions improve the functionality of the application by allowing for more diverse sources of data and more efficient search capabilities. Gabriel Luiz Freitas Almeida 2023-06-22 13:51:53 -03:00
  • 1a0d448e82 🚀 feat(validate.py): remove unused imports and endpoint for node validation 🚀 feat(base.py): update import statement for loading module 🚀 feat(vector_store.py): add initialization functions for pinecone, chroma, and qdrant The unused imports and endpoint for node validation were removed from validate.py. The import statement for the loading module was updated in base.py. Initialization functions for pinecone, chroma, and qdrant were added to vector_store.py to allow for the creation of objects from the respective services. Gabriel Luiz Freitas Almeida 2023-06-22 13:51:18 -03:00
  • 1e61500f38 🚀 feat(chains.py): add return_source_documents field to template The return_source_documents field is added to the template as a boolean field. It is not a required field and is set to True by default. This field is used to determine whether the source documents should be returned or not. It is displayed in the frontend and can be toggled by the user. Gabriel Luiz Freitas Almeida 2023-06-22 13:48:44 -03:00
  • 9ecba59d81 🔥 chore(types.py): remove unused _built_object_repr method from VectorStoreVertex The _built_object_repr method was not being used and was therefore removed to improve code readability and maintainability. Gabriel Luiz Freitas Almeida 2023-06-22 13:48:21 -03:00
  • 796ce298f6 ✨ feat(documentloaders.py): add metadata field to document loader template The function build_template was renamed to build_file_field to improve naming consistency. A metadata field of type dict was added to the document loader template to allow for additional information to be passed along with the document. The format_field method was updated to show the metadata field when it is present. 🔨 refactor(documentloaders.py): rename build_template function to build_file_field for better semantics Gabriel Luiz Freitas Almeida 2023-06-22 13:47:43 -03:00
  • b8141dca7d 🚀 feat(loading.py): move loading into initialize module 📝 docs(initialize): add empty __init__.py file to initialize directory The initialize directory was added to the project, but it was missing an __init__.py file. This file is necessary to make the directory a package and allow importing modules from it. An empty __init__.py file was added to the directory to fix this issue. Gabriel Luiz Freitas Almeida 2023-06-22 13:45:04 -03:00
  • 2854633814 🔥 refactor(API): remove unused postValidateNode function The postValidateNode function is not used in the codebase and has been removed to improve code readability and maintainability. Gabriel Luiz Freitas Almeida 2023-06-22 11:45:55 -03:00
  • e5c6c92ecc ✨ feat(frontend): add Pinecone icon to nodeIcons A new PineconeIcon component was added to the nodeIcons object in utils.ts. This allows the Pinecone icon to be used in the frontend application. The icon was added to improve the visual representation of the Pinecone node in the application. Gabriel Luiz Freitas Almeida 2023-06-22 11:45:44 -03:00
  • 08e5e98d84 Adjusted broken links. Added more info in some sections. carlosrcoelho 2023-06-22 10:41:44 -03:00
  • c6b823da49 Change installation Rodrigo Nader 2023-06-22 02:15:07 -03:00
  • 05bd7b415a
    Adding Building Progress Bar with DaisyUI and Radial Progress (#522) Gabriel Luiz Freitas Almeida 2023-06-22 00:20:01 +00:00
  • 4d7cd3d526 Added documentation carlosrcoelho 2023-06-21 19:13:44 -03:00
  • a534fa9337 Merge remote-tracking branch 'origin/main' into multipart_endpoint Gabriel Luiz Freitas Almeida 2023-06-21 18:21:35 -03:00
  • 5bdca44953 Fix[FlowPage/components/extraSideBarComponent/index.tsx]: Fix buttons and inputs ring color Igor Carvalho 2023-06-21 18:06:43 -03:00
  • 96bce3da81 🐛 fix(utils.py): remove file extension from saved file name 🐛 fix(process.py): correctly update template_data with tweak_value The file extension is no longer included in the saved file name to avoid issues with file extensions that may not be supported. In process.py, the tweak_value is now correctly updated in the template_data dictionary. The key is now set to "value" for all tweaks except for "file_path" where the key is set to the name of the tweak. Gabriel Luiz Freitas Almeida 2023-06-21 17:45:12 -03:00
  • 3781f1ddda 🔨 refactor(loading.py): extract persist parameter from params for Chroma vector store instantiation ✨ feat(loading.py): add persist parameter to Chroma vector store instantiation to enable persistence of vector store The persist parameter is now extracted from the params dictionary before instantiating the Chroma vector store. This improves readability and reduces the complexity of the code. The persist parameter is now added to the Chroma vector store instantiation to enable persistence of the vector store. This allows the vector store to be reused across multiple sessions, improving performance and reducing the time required to load the vector store. Gabriel Luiz Freitas Almeida 2023-06-21 17:27:57 -03:00
  • b7eab50672 🚀 feat(vectorstores.py): add support for Chroma vector store type 🐛 fix(vectorstores.py): add persist field to Weaviate vector store type The VectorStoreFrontendNode class now supports the Chroma vector store type. A new boolean field persist has been added to the Chroma vector store type. The add_extra_fields method has been updated to add the persist field to the Chroma vector store type. The format_field method has been updated to include the persist field in the basic fields. Additionally, the add_extra_fields method has been updated to add the weaviate_url field to the Weaviate vector store type. Gabriel Luiz Freitas Almeida 2023-06-21 17:27:40 -03:00
  • 100833f40f
    🔖 chore(pyproject.toml): bump version to 0.1.7 (#528) Gabriel Luiz Freitas Almeida 2023-06-21 19:19:20 +00:00
  • dbbba573e3 style: formatting Gabriel Luiz Freitas Almeida 2023-06-21 16:18:31 -03:00
  • 860c36146e 🎨 style(documentloaders.py): fix indentation and formatting issues The changes in this commit are purely cosmetic. The indentation and formatting issues in the code have been fixed to improve readability and maintainability. Gabriel Luiz Freitas Almeida 2023-06-21 16:18:11 -03:00
  • 3d49b67e3d
    Merge branch 'main' into release Gabriel Luiz Freitas Almeida 2023-06-21 19:17:22 +00:00
  • c1bb928451 🔖 chore(pyproject.toml): bump version to 0.1.7 The version number has been updated from 0.1.6 to 0.1.7 to reflect the changes made in the package. This is a chore commit as it does not add any new features or fix any bugs, but rather updates the version number. Gabriel Luiz Freitas Almeida 2023-06-21 16:16:29 -03:00
  • e0d9b21d28
    Update LangChain to the latest version (#527) Gabriel Luiz Freitas Almeida 2023-06-21 19:13:02 +00:00
  • 10db240a6b 🐛 fix(custom.py): rename QueryCheckerTool to QuerySQLCheckerTool to match the correct class name The QueryCheckerTool class was renamed to QuerySQLCheckerTool to match the correct class name. This change ensures that the correct class is being used and avoids any potential errors that may arise from using the wrong class name. Gabriel Luiz Freitas Almeida 2023-06-21 16:08:37 -03:00
  • 19a5eb0467
    Merge branch 'main' into release Gabriel Luiz Freitas Almeida 2023-06-21 19:02:26 +00:00
  • 2650cb013c 🔼 chore(pyproject.toml): bump package version to 0.1.6 The langchain dependency has been updated to version 0.0.208 to ensure compatibility with the latest version of the package. The package version has been bumped to 0.1.6 to reflect the changes made. 🔼 chore(pyproject.toml): update langchain dependency to version 0.0.208 Gabriel Luiz Freitas Almeida 2023-06-21 15:55:13 -03:00
  • b6c10206e2 📦 chore(pyproject.toml): add appdirs package to dev dependencies The appdirs package is added to the dev dependencies to support the development of the application. Gabriel Luiz Freitas Almeida 2023-06-21 15:44:02 -03:00
  • bdd2076deb 🔒 chore(loading.py): remove code that deletes files after loading in instantiate_documentloader function The save_uploaded_file function now uses the folder_name parameter instead of file_name to improve semantics. The appdirs library is now used to get the user cache directory and a folder for langflow cache is created. The sha256 hash of the file content is now used as the file name to avoid collisions and improve security. A folder is now created for each flow_id in the save_uploaded_file function. The code that deletes files after loading in the instantiate_documentloader function has been removed as it is unnecessary and can cause issues. 🐛 fix(endpoints.py): change file_name parameter to folder_name in save_uploaded_file function 🔒 chore(utils.py): use appdirs to get user cache directory and create a folder for langflow cache 🔒 chore(utils.py): use sha256 hash of file content as file name to avoid collisions and improve security 🔒 chore(utils.py): create folder for each flow_id in save_uploaded_file function Gabriel Luiz Freitas Almeida 2023-06-21 15:43:27 -03:00
  • 1aa91587cc refactor: Use specific event parameter type in BuildTrigger Cristhian Zanforlin Lousa 2023-06-21 15:11:49 -03:00
  • d3d33162e8 🐛 fix(chat.py): change event name from "node" to "message" in stream_build function The event name was changed from "node" to "message" to better reflect the nature of the data being sent. The data being sent is a message response from the server, not a node in the graph. Gabriel Luiz Freitas Almeida 2023-06-21 15:04:36 -03:00
  • 0a1ceba765 🔥 chore(buildTrigger): remove unused TODO comment The TODO comment regarding the implementation of progress has been removed as it is no longer relevant. Gabriel Luiz Freitas Almeida 2023-06-21 14:55:22 -03:00
  • b9231aad8f 🔥 refactor(buildTrigger): remove unused imports and ProgressBarComponent 🐛 fix(buildTrigger): handle error response from server when starting a build The ProgressBarComponent import was removed as it was not being used. The error handling was improved to handle the case where the server returns an error response when starting a build. The error message is now displayed to the user and the build state is reset. Gabriel Luiz Freitas Almeida 2023-06-21 14:53:41 -03:00
  • 38c2eaa897 🔥 refactor(chat.py): remove unused import statement 🐛 fix(chat.py): fix StreamData class import statement ✨ feat(chat.py): add progress tracking and node building events to stream_build function The unused import statement has been removed to improve code readability. The StreamData class import statement has been fixed to avoid errors. Progress tracking and node building events have been added to the stream_build function to provide more information to the user about the build process. Gabriel Luiz Freitas Almeida 2023-06-21 14:53:22 -03:00
  • fae1ca349f 🔧 chore(schemas.py): add StreamData model and __str__ method to improve readability of stream data The StreamData model is added to represent the data that is streamed from the server. The __str__ method is added to improve the readability of the stream data by returning a formatted string that includes the event and data attributes. Gabriel Luiz Freitas Almeida 2023-06-21 14:52:40 -03:00
  • 22e24226a3 Refactor buildTrigger component to use progress state instead of myValue Cristhian Zanforlin Lousa 2023-06-21 14:50:38 -03:00
  • 3a9315ed77 Merge branch 'feat/progressbar' of https://github.com/logspace-ai/langflow into feat/progressbar Cristhian Zanforlin Lousa 2023-06-21 14:05:26 -03:00