Commit graph

  • 5cd809ea6a 🔼 chore(pyproject.toml): update langchain dependency to version 0.0.215 🔼 chore(pyproject.toml): bump package version to 0.2.1 The langchain dependency has been updated to version 0.0.215, which includes bug fixes and performance improvements. The package version has been bumped to 0.2.1 to reflect the changes made. Gabriel Luiz Freitas Almeida 2023-06-25 19:45:00 -03:00
  • 6f9e6922df 🐛 fix(utils.ts): correct typo in MidjourneyIcon import The import statement for the MidjourneyIcon was misspelled as MidjorneyIcon, which caused a runtime error. This commit fixes the typo by changing the import statement to MidjourneyIcon. Gabriel Luiz Freitas Almeida 2023-06-25 19:42:56 -03:00
  • 263ca75fd5 ✨ feat(utils.ts): add new icons to nodeIconsLucide The import of Boxes and LayoutDashboard were removed as they were not being used in the file. New icons were added to nodeIconsLucide to improve the variety of icons available for use. The new icons added are MongoDBAtlasVectorSearch, Pinecone, and SupabaseVectorStore. 🔥 chore(utils.ts): remove unused import of Boxes and LayoutDashboard Gabriel Luiz Freitas Almeida 2023-06-25 19:39:30 -03:00
  • a2197bfeb5 🐛 fix(Midjorney): fix typo in import statement and component name The import statement and component name were both misspelled as "Midjorney" instead of "Midjourney". This commit fixes the typo in both places. Gabriel Luiz Freitas Almeida 2023-06-25 19:39:20 -03:00
  • 31f3b74c90 Update pyproject.toml Naveen Choudhary 2023-06-15 23:08:22 -05:00
  • 0c398fb6c5 🔨 refactor(loading.py): add type hinting to instantiate_agent function 🐛 fix(loading.py): fix type hinting in instantiate_embedding function 🔨 refactor(loading.py): add type hinting to instantiate_textsplitter function The changes in this commit add type hinting to the instantiate_agent, instantiate_embedding, and instantiate_textsplitter functions to improve code readability and maintainability. The instantiate_embedding function had a bug in its type hinting which has been fixed. Gabriel Luiz Freitas Almeida 2023-06-25 19:34:25 -03:00
  • 9510474aa6 📝 docs(config.yaml): add documentation links to vectorstores integrations Added documentation links to the vectorstores integrations in the config.yaml file. This will make it easier for developers to access the documentation for each integration. Gabriel Luiz Freitas Almeida 2023-06-25 18:59:40 -03:00
  • 005e7ec51c 🚀 feat(textsplitters.py): add a field for separator type in RecursiveCharacterTextSplitter The RecursiveCharacterTextSplitter class in textsplitters.py now has a new field called separator_type. This field is used to specify the type of separator to be used in the splitter. The separator_type field is a string and can take any value from the Language enum or "Text". This change was made to improve the flexibility of the RecursiveCharacterTextSplitter class. Gabriel Luiz Freitas Almeida 2023-06-25 18:57:45 -03:00
  • 217225467f 🔨 refactor(loading.py): add type hints to function parameters and return types This commit adds type hints to the function parameters and return types in the loading.py file. This improves the readability and maintainability of the codebase by making it easier to understand the expected types of the parameters and return values of the functions. Gabriel Luiz Freitas Almeida 2023-06-25 18:57:35 -03:00
  • d4599a52b3 📝 docs(config.yaml): add documentation links for new integrations and memories Added documentation links for new integrations and memories to improve the documentation of the project. The new integrations are Cohere and HuggingFaceHub, and the new memories are ConversationBufferWindowMemory and VectorStoreRetrieverMemory. Gabriel Luiz Freitas Almeida 2023-06-25 18:37:18 -03:00
  • a45947c01b 🚀 feat(vectorstores.py): add VectorStoreRetriever as an extra base class to VectorStoreFrontendNode The VectorStoreFrontendNode class now has VectorStoreRetriever as an extra base class in addition to BaseRetriever. This change was made to improve the functionality of the class by allowing it to inherit from VectorStoreRetriever. Gabriel Luiz Freitas Almeida 2023-06-25 18:37:05 -03:00
  • 5f56384dce 🚀 feat(__main__.py): add support for cache configuration The update_settings function now accepts a cache parameter that allows the user to specify the type of cache to use. The cache parameter is set to a default value of SQLiteCache and can be overridden by setting the LANGCHAIN_CACHE environment variable. This feature improves the flexibility of the application as it allows the user to choose the type of cache that best suits their needs. Gabriel Luiz Freitas Almeida 2023-06-25 18:20:21 -03:00
  • a15da8eb0d 🚀 feat(settings.py): add cache configuration option The cache configuration option has been added to the settings file with a default value of "InMemoryCache". This allows the user to choose the cache implementation they want to use. Gabriel Luiz Freitas Almeida 2023-06-25 18:20:13 -03:00
  • 89c2e5b064 🚀 feat(utils.py): add support for configurable LLM caching This commit adds support for configurable LLM caching. The setup_llm_caching function now imports the cache class from the langchain.cache module based on the settings.cache value. If the import is successful, the langchain.llm_cache is set to an instance of the cache class. If the import fails, a warning is logged. If an exception is raised during the setup, a warning is logged with the error message. Gabriel Luiz Freitas Almeida 2023-06-25 18:19:59 -03:00
  • 1a318a82ae
    Update README.md Rodrigo Nader 2023-06-25 17:40:14 -03:00
  • 3287f45137
    Add LLM cache (#541) Gustavo Schaedler 2023-06-25 21:00:34 +01:00
  • 02befe5052 📝 docs(config.yaml): add documentation links for LlamaCpp and CTransformers integrations This commit adds documentation links for the LlamaCpp and CTransformers integrations in the config.yaml file. The links point to the relevant documentation pages on the LangChain website. This improves the accessibility of the documentation for these integrations. Gabriel Luiz Freitas Almeida 2023-06-25 09:27:44 -03:00
  • d523b7f8b0 fix: removing placeholders Gabriel Luiz Freitas Almeida 2023-06-25 09:26:13 -03:00
  • 29542f4cf8 🔧 chore(utils.py): add setup_llm_caching function to set up LLM caching ✨ feat(main.py): call setup_llm_caching function on app startup The setup_llm_caching function is added to utils.py to set up LLM caching. The function is then called on app startup in main.py using the app.on_event("startup") method. This improves the performance of the application by caching LLM objects. Gabriel Luiz Freitas Almeida 2023-06-25 09:12:41 -03:00
  • d0893d2eb7 🔥 chore(test_prompts_template.py): remove unused test_few_shot_prompt_template function The test_few_shot_prompt_template function is not being used and is not necessary for the tests. Removing it will make the code cleaner and easier to maintain. Gabriel Luiz Freitas Almeida 2023-06-24 16:53:13 -03:00
  • e7ce83562f 🐛 fix(settings.py): change default values of settings attributes from list to dictionary The default values of the settings attributes were changed from an empty list to an empty dictionary. This change was made to avoid errors that could occur when trying to access a non-existent key in the dictionary. Gabriel Luiz Freitas Almeida 2023-06-24 16:38:24 -03:00
  • aa4b7bfc32 🐛 fix(GenericNode): add conditional rendering to documentation link to prevent empty href The documentation link was previously always rendered, even if the href was empty. This caused an issue where the link would be clickable but lead to nowhere. The fix adds a conditional rendering to the link, so it is only rendered if the href is not empty. Gabriel Luiz Freitas Almeida 2023-06-24 16:38:11 -03:00
  • 99f0b803e9 🔨 refactor(tabsContext.tsx): improve code readability by adding whitespace and consistent formatting The code has been refactored to improve readability by adding whitespace and consistent formatting. The function names have been updated to use camelCase for consistency. The updateDisplay_name function has been updated to use a logical OR operator instead of a ternary operator for better readability. The updateNodeDocumentation function has been added to update the node documentation. The updateNodeBaseClasses, updateNodeEdges, updateNodeDescription, and updateNodeTemplate functions have been updated to use consistent parameter names and whitespace. Gabriel Luiz Freitas Almeida 2023-06-24 16:32:48 -03:00
  • f52feac7e5 🎨 style(GenericNode/index.tsx): remove unused imports and add documentation link to node toolbar 🚀 feat(api/index.ts): add documentation field to APIClassType The unused imports were removed to improve code readability. A documentation link was added to the node toolbar to allow users to easily access the documentation for the node. The documentation field was added to the APIClassType to allow for the storage of a link to the documentation for the API class. Gabriel Luiz Freitas Almeida 2023-06-24 16:32:32 -03:00
  • 2de86cbac4 📝 docs(frontend_node): add set_documentation method to set the documentation of the frontend node ✨ feat(frontend_node): add documentation field to the frontend node dict representation The set_documentation method is added to the FrontendNode class to allow setting the documentation of the frontend node. The to_dict method is updated to include the documentation field in the dict representation of the frontend node. This improves the readability and usability of the frontend node by providing documentation for the node. Gabriel Luiz Freitas Almeida 2023-06-24 16:32:00 -03:00
  • 08cdc15d98 🔍 refactor(base.py): add documentation support to LangChainTypeCreator This commit adds a new property to the LangChainTypeCreator class called docs_map, which is a dictionary that maps the name of the component to its documentation link. The docs_map property is used to set the documentation of the component in the signature of the component. This change improves the readability and maintainability of the code by making it easier to add and update documentation for components. Gabriel Luiz Freitas Almeida 2023-06-24 16:31:47 -03:00
  • 3be8ac0d72 Update settings structure Gabriel Luiz Freitas Almeida 2023-06-24 16:31:39 -03:00
  • 94cc554834 🐛 fix(dropdownComponent): add missing context imports and dependencies 🐛 fix(floatComponent): add missing context imports and dependencies 🐛 fix(intComponent): add missing context imports and dependencies Cristhian Zanforlin Lousa 2023-06-24 11:03:36 -03:00
  • 6cc4106c23 🐛 fix(inputListComponent): fix onChange event not being triggered when input value changes ✨ feat(inputListComponent): add PopUpContext to be able to close pop-ups when input value changes Cristhian Zanforlin Lousa 2023-06-23 20:15:44 -03:00
  • c94094a2e7
    Release 0.2 (#537) Gabriel Luiz Freitas Almeida 2023-06-23 22:52:46 +00:00
  • 01bc5e41bc 🔖 chore(pyproject.toml): bump up version to 0.2.0 The version number has been updated from 0.1.7 to 0.2.0 to reflect the changes made to 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-23 19:48:45 -03:00
  • 4e01de9e39 🐛 fix(inputListComponent): set inputList state to value prop on value prop change to fix inputList not updating on prop change 🔒 chore(utils.ts): add random number to getRandomKeyByssmm function to reduce the chance of key collision Cristhian Zanforlin Lousa 2023-06-23 19:18:31 -03:00
  • fa5b80399d fix[FlowPage/components/extraSideBarComponent/index.tsx]: extra side bar component button hover background Igor Carvalho 2023-06-23 19:08:08 -03:00
  • f765a52164 feat[Remove all redundant colors]: Change redundant colors and add new color variants Igor Carvalho 2023-06-23 18:59:32 -03:00
  • 27d7553fb6
    Icons style - Lucide Icons (#529) Cristhian Zanforlin Lousa 2023-06-23 18:34:52 -03:00
  • 1af05a2c97
    Bugfix modals (#535) anovazzi1 2023-06-23 18:32:54 -03:00
  • f0476e20df 🎨 style(inputFileComponent): reduce size of FileSearch2 icon to improve UI aesthetics Cristhian Zanforlin Lousa 2023-06-23 18:30:35 -03:00
  • b61c0ac23a 🐛 fix(modals): add unique key prop to TabsTrigger component to remove console warning 🎨 style(modals): add whitespace to Dialog component props for better readability Cristhian Zanforlin Lousa 2023-06-23 18:27:51 -03:00
  • faaa707722 Merge branch 'dev' of personal:logspace-ai/langflow into dev anovazzi1 2023-06-23 18:26:50 -03:00
  • 6abb03dfa1 refactor(tabsContext.tsx): add type annotations to function parameters and return types feat(tabsContext.tsx): add support for display_name property in node templates to allow custom node names fix(tabsContext.tsx): add null checks to prevent errors when processing flow edges and nodes refactor(typesContext/index.ts): change template object type to APIClassType to match usage in tabsContext anovazzi1 2023-06-23 18:26:31 -03:00
  • 3b20a40af8 Formatting code Cristhian Zanforlin Lousa 2023-06-23 18:08:16 -03:00
  • eac1f7c922 Merge fix with dev Cristhian Zanforlin Lousa 2023-06-23 18:06:51 -03:00
  • facfe6ac57 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev Cristhian Zanforlin Lousa 2023-06-23 18:03:17 -03:00
  • c788d4c200 🐛 fix(extraSidebarComponent): fix key prop in DisclosureComponent and TooltipComponent to use unique values Cristhian Zanforlin Lousa 2023-06-23 18:02:07 -03:00
  • cad352ad54 changed url carlosrcoelho 2023-06-23 17:59:49 -03:00
  • e05889ffbb changed URL carlosrcoelho 2023-06-23 17:55:44 -03:00
  • 46b247d1a1
    Remove unnecessary text-sm class from message sender name to improve readability (#531) anovazzi1 2023-06-23 17:53:38 -03:00
  • 363e6459cb 🚀 feat(documentloaders.py): add SlackDirectoryLoader to the list of document loaders The SlackDirectoryLoader is added to the list of document loaders in the DocumentLoaderFrontNode class. This allows users to load zip files from Slack into the application. Gabriel Luiz Freitas Almeida 2023-06-23 17:52:59 -03:00
  • 247e911620 Merge branch 'dev' of personal:logspace-ai/langflow into dev anovazzi1 2023-06-23 17:30:09 -03:00
  • 49bbb41e98 feat(frontend): add size="small" to ModalField input to improve UI consistency feat(frontend): add save function to TabsContext to enable saving of changes made to tabs fix(frontend): add save function to TabsContext in ParameterComponent to enable saving of changes made to tabs anovazzi1 2023-06-23 17:29:26 -03:00
  • fc17bc541b refactor(dropdownComponent): add useEffect hook to update internalValue when value prop changes to avoid stale data anovazzi1 2023-06-23 17:28:33 -03:00
  • 3940c0959d
    Gitloader (#533) Gabriel Luiz Freitas Almeida 2023-06-23 20:24:24 +00:00
  • 833e165718 fixed url carlosrcoelho 2023-06-23 17:23:33 -03:00
  • fb188b3418 changed url carlosrcoelho 2023-06-23 17:11:15 -03:00
  • d06e8aa517 refactor(extraSidebarComponent): change ShadTooltip content to display the display_name property of data object instead of the key name to improve readability and user experience anovazzi1 2023-06-23 17:11:08 -03:00
  • 07125b8c8c Merge branch 'dev' of personal:logspace-ai/langflow into dev anovazzi1 2023-06-23 17:09:22 -03:00
  • 9bee33fa18 refactor(extraSidebarComponent): change variable name 't' to 'displayName' for better readability and clarity of code anovazzi1 2023-06-23 17:09:12 -03:00
  • 8325caa76e 🔺 chore(pyproject.toml): update langchain dependency from 0.0.209 to 0.0.211 This commit updates the langchain dependency from version 0.0.209 to version 0.0.211. This is a minor version update that includes bug fixes and performance improvements. Gabriel Luiz Freitas Almeida 2023-06-23 17:07:50 -03:00
  • 019e2b2bb4 refactor(GenericNode): change data.type to data.node.display_name to improve semantics and readability feat(api): add display_name field to APIClassType to provide a human-readable name for the class anovazzi1 2023-06-23 17:06:58 -03:00
  • 78bd6c19a2 changed baseUrl carlosrcoelho 2023-06-23 17:05:47 -03:00
  • d9ec262752 formatting Gabriel Luiz Freitas Almeida 2023-06-23 16:51:54 -03:00
  • 0bab7ae714 🚀 feat(documentloaders.py): add fields to GitLoader template to support repository path, clone URL, branch, and file filter The GitLoader template now has four new fields: repo_path, clone_url, branch, and file_filter. These fields allow the user to specify the repository path, clone URL, branch, and file extensions to be loaded. This improves the flexibility of the GitLoader template and allows it to be used in a wider range of scenarios. Additionally, a minor change was made to the add_extra_fields method to ensure that the field.show attribute is set to True for all fields. Gabriel Luiz Freitas Almeida 2023-06-23 16:50:22 -03:00
  • 15ac75ecc5 🔨 refactor(loading.py): add support for filtering files by extension in document loader The instantiate_documentloader function now supports filtering files by extension using a file_filter parameter. The parameter is a string of comma-separated extensions, and the function now converts it into a lambda function that filters files based on whether their name contains any of the specified extensions. This improves the flexibility of the document loader by allowing it to load only specific types of files. Gabriel Luiz Freitas Almeida 2023-06-23 16:50:11 -03:00
  • 96bab94b14 🔥 chore(chains.py): remove unnecessary commented line The commented line is not needed and can be safely removed. Gabriel Luiz Freitas Almeida 2023-06-23 16:13:16 -03:00
  • a0b81f6227
    Upload File Endpoint / Better VectorStore Implementation (#525) Gabriel Luiz Freitas Almeida 2023-06-23 19:09:26 +00:00
  • 02c6d77b64 🐛 fix(base.py): sort fields alphabetically before sorting by DIRECT_TYPES The fields in the Template class were previously sorted by DIRECT_TYPES, which caused issues when fields had the same field_type. Sorting alphabetically first ensures that fields are sorted in a consistent manner before sorting by DIRECT_TYPES. Gabriel Luiz Freitas Almeida 2023-06-23 15:53:48 -03:00
  • d9fa17189e 🎨 style(MongoDB icon): rename SlackSVG to MongoDBSVG for better naming The SlackSVG component was renamed to MongoDBSVG to better reflect the actual icon being used. This improves the naming consistency and makes the code more readable. Gabriel Luiz Freitas Almeida 2023-06-23 15:33:10 -03:00
  • f946db714f builded carlosrcoelho 2023-06-23 14:43:52 -03:00
  • 99121d95c1 🔀 refactor(loading.py): use dictionary to initialize vector stores The instantiate_vectorstore function now uses a dictionary to initialize vector stores instead of a series of if-else statements. This improves the readability and maintainability of the code. A new dictionary vecstore_initializer is added to vector_store.py to map the class names of vector stores to their respective initialization functions. Gabriel Luiz Freitas Almeida 2023-06-23 14:32:15 -03:00
  • 122005e3e7 fixed readthedocs yaml position carlosrcoelho 2023-06-23 14:31:50 -03:00
  • 7288a8c22f added readthedocs yaml carlosrcoelho 2023-06-23 14:29:56 -03:00
  • 14a0dd0b16 improved mendable file and centralized videos. carlosrcoelho 2023-06-23 14:08:45 -03:00
  • 19bd687b3f 📦 chore(pyproject.toml): add certifi package to dev dependencies The certifi package is added to the dev dependencies to ensure that the package is available during development. This package provides Mozilla's carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while making HTTPS requests. Gabriel Luiz Freitas Almeida 2023-06-23 13:20:28 -03:00
  • fb7bcb50e5 🚀 feat(loading.py): add support for MongoDBAtlasVectorSearch vector store The instantiate_vectorstore function now supports the MongoDBAtlasVectorSearch vector store. This allows for the use of MongoDB Atlas as a vector store for Langflow. The search_kwargs parameter is now supported for all vector stores that have a as_retriever method. This allows for the configuration of the vector store's search parameters. Gabriel Luiz Freitas Almeida 2023-06-23 13:20:02 -03:00
  • ea0231025f ✨ feat(vectorstores.py): add support for index_name parameter in MongoDBAtlasVectorSearch template The hardcoded values for db_name, collection_name, and index_name have been removed from the initialize_mongodb function and are now required parameters. This makes the function more flexible and allows it to be used with different databases and collections. The support for the index_name parameter has been added to the MongoDBAtlasVectorSearch template in vectorstores.py, which allows the user to specify the name of the index to be used in the search. 🐛 fix(vector_store.py): remove hardcoded values for db_name, collection_name, and index_name and make them required parameters Gabriel Luiz Freitas Almeida 2023-06-23 13:19:30 -03:00
  • 81fb84b081 🎨 style(MongoDBIcon): add MongoDBIcon component to frontend app The MongoDBIcon component was added to the frontend app to be used as an icon for MongoDB Atlas Vector Search. The icon was added as an SVG file and imported as a React component. The component was then added to the nodeIcons object in the utils.ts file. Gabriel Luiz Freitas Almeida 2023-06-23 13:18:52 -03:00
  • 2eb677f1db Merge branch 'dynamicNode' into python_custom_node_component gustavoschaedler 2023-06-23 17:18:23 +01:00
  • 086ed52923 📦 chore(pyproject.toml): add pymongo dependency to dev dependencies The pymongo package is added to the dev dependencies section of the pyproject.toml file. This package is required for development purposes. Gabriel Luiz Freitas Almeida 2023-06-23 12:38:22 -03:00
  • 4cc2fae52b 🚀 feat(langflow): add support for MongoDB Atlas Vector Search in vectorstores ✨ feat(langflow): add support for search_kwargs field in VectorStoreFrontendNode The changes add support for MongoDB Atlas Vector Search in the vectorstores. The MongoDBAtlasVectorSearch class is now imported and initialized in vector_store.py. The initialize_mongodb function is added to initialize the MongoDB Atlas Vector Search class. The VectorStoreFrontendNode class is updated to add the mongodb_atlas_cluster_uri, collection_name, and db_name fields. The search_kwargs field is also added to the VectorStoreFrontendNode class to allow users to pass additional search parameters to the vector store. Gabriel Luiz Freitas Almeida 2023-06-23 12:38:02 -03:00
  • dc0a772635 🚚 chore(endpoints.py): reorder endpoints to keep backwards compatibility The /predict/{flow_id} endpoint was moved above the /process/{flow_id} endpoint to maintain backwards compatibility with existing clients. Gabriel Luiz Freitas Almeida 2023-06-23 12:36:46 -03:00
  • bcb80a08b2 🐛 fix(loading.py): remove unnecessary type hinting for allowed_tools variable The type hinting for allowed_tools variable is unnecessary as it is already defined in the previous line. Removing the type hinting improves the readability of the code. Gabriel Luiz Freitas Almeida 2023-06-23 11:04:03 -03:00
  • 4451e7e777 🔒 chore(pyproject.toml): update fastapi dependency to version 0.98.0 FastAPI dependency has been updated to version 0.98.0 to ensure that the application is using the latest version of the framework. Gabriel Luiz Freitas Almeida 2023-06-23 10:57:36 -03:00
  • 0645693069 🐛 fix(utils.ts): simplify ternary operator in validateNode function The ternary operator in the validateNode function was simplified by removing the unnecessary if statement. The code is now more concise and easier to read. Gabriel Luiz Freitas Almeida 2023-06-23 10:54:34 -03:00
  • d4559c1356 ✅ test(test_template.py): add assertion to check if result is not None The test now includes an assertion to check if the result of the function call is not None. This ensures that the function is returning a value and that the test is checking the correct output. Gabriel Luiz Freitas Almeida 2023-06-23 10:53:53 -03:00
  • c191d893ca ✅ test(test_template.py): add assertions to test_build_template_from_function Added assertions to test_build_template_from_function to ensure that the returned result is not None and that the expected keys are present in the result. This improves the reliability of the test and ensures that the function is working as expected. Gabriel Luiz Freitas Almeida 2023-06-23 10:52:55 -03:00
  • 8cd8449034 🔥 refactor(inputFileComponent): remove unused import of RadialProgressComponent The import of RadialProgressComponent was removed as it was not being used in the component. Gabriel Luiz Freitas Almeida 2023-06-23 10:51:59 -03:00
  • 713d2f19e5 🔨 refactor(utils.ts): simplify snakeToSpaces function 🔨 refactor(utils.ts): simplify getConnectedNodes function 🔨 refactor(utils.ts): remove unused variable in groupByFamily function The snakeToSpaces function has been simplified by removing the unnecessary variable declaration. The getConnectedNodes function has been simplified by removing the unnecessary variable declaration and returning the result directly. The groupedObj variable in the groupByFamily function is no longer used, so it has been removed. Gabriel Luiz Freitas Almeida 2023-06-23 10:51:29 -03:00
  • fb25744714 🔥 refactor(loading.py): remove unused imports and functions The imports and functions that were not being used were removed to improve the code's readability and maintainability. Gabriel Luiz Freitas Almeida 2023-06-23 10:51:09 -03:00
  • 6c08340aff 🚀 feat(vectorstores.py): add display name for SupabaseVectorStore The display name for the SupabaseVectorStore is now set to "Supabase". This improves the user experience by providing a more descriptive name for the vector store. Gabriel Luiz Freitas Almeida 2023-06-23 10:50:37 -03:00
  • a0f48b1d12 🐛 fix(test_graph.py): add assertion to check if root node is not None The test_build_params function was failing when the root node was None. This commit adds an assertion to check if the root node is not None before proceeding with the other assertions. Gabriel Luiz Freitas Almeida 2023-06-23 10:44:23 -03:00
  • 786a4bd233 Merge remote-tracking branch 'origin/dev' into add_params_to_llms Gabriel Luiz Freitas Almeida 2023-06-23 09:54:45 -03:00
  • 8ccdeb9dd5 🐛 fix(chat.py): fix stream_build function to return StreamData objects instead of strings ✨ feat(chat.py): add progress information to the stream_build function The stream_build function now returns StreamData objects instead of strings, which improves the readability of the code. The function also now includes progress information in the response, which allows the client to track the progress of the build process. Gabriel Luiz Freitas Almeida 2023-06-23 09:54:15 -03:00
  • fc2e6c112e 🐛 fix(chat.py): delete flow from cache if it already exists before initializing build The code now checks if the flow already exists in the cache and deletes it before initializing the build. This ensures that the cache is always up to date and avoids any inconsistencies that may arise from having outdated data in the cache. Gabriel Luiz Freitas Almeida 2023-06-23 09:28:25 -03:00
  • cc8e5e3106 🚀 feat(tests): update default values for OpenAI models in chat and text fields The default value for the OpenAI model in the chat field has been updated to "gpt-3.5-turbo-0613" to reflect the latest version of the model. The default value for the OpenAI model in the text field has been updated to "text-davinci-003" to reflect the latest version of the model. This ensures that the tests are using the latest and most accurate models for OpenAI. Gabriel Luiz Freitas Almeida 2023-06-23 09:19:25 -03:00
  • f2230a6d70 🚚 chore(base.py): move DIRECT_TYPES import to utils.constants The DIRECT_TYPES import has been moved to the utils.constants module to improve the organization of the code. Gabriel Luiz Freitas Almeida 2023-06-23 09:13:38 -03:00
  • a23c53dd14 🚀 feat(base.py): add sorting of fields based on DIRECT_TYPES The sort_fields method has been added to the Template class to sort fields based on the DIRECT_TYPES constant. Fields that have a field_type in DIRECT_TYPES are sorted first, followed by the remaining fields. This ensures that fields that have a direct type are processed first, which is important for the correct functioning of the template. Gabriel Luiz Freitas Almeida 2023-06-23 09:13:22 -03:00
  • 9f00421d64 🔥 chore(constants.py): remove DIRECT_TYPES constant from vertex and graph modules The DIRECT_TYPES constant was removed from the vertex and graph modules as it is now defined in the utils module. This change improves code organization and reduces duplication. Gabriel Luiz Freitas Almeida 2023-06-23 09:13:09 -03:00
  • c0a8d15dc2 🐛 fix(util.py): set default value for model_name in format_dict function The format_dict function was updated to set a default value for the model_name key in the value dictionary for the OpenAI, ChatOpenAI, and Anthropic models. This ensures that the model_name key always has a value, even if the options list is empty. Gabriel Luiz Freitas Almeida 2023-06-23 09:12:53 -03:00
  • a05a9202e8 🐛 fix(chains.py): set required=True for TemplateField 'memory' ✨ feat(chains.py): add TemplateField 'chain_type' to support different types of QA chains The 'memory' field was previously set to required=False, but it is actually required for the chain to function properly. This fix sets required=True for the 'memory' field. Gabriel Luiz Freitas Almeida 2023-06-23 09:04:35 -03:00
  • c686ed01ca 🐛 fix(memories.py): set advanced field to False for input_key and output_key fields The advanced field was set to True for input_key and output_key fields, which made them appear in the advanced section of the UI. This was not intended, so the advanced field is now set to False for these fields. Gabriel Luiz Freitas Almeida 2023-06-23 09:04:21 -03:00