Commit graph

2,558 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
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.
2023-06-25 19:42:56 -03:00
Gabriel Luiz Freitas Almeida
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
2023-06-25 19:39:30 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 19:39:20 -03:00
Naveen Choudhary
31f3b74c90 Update pyproject.toml 2023-06-25 19:35:39 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 19:34:25 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:59:40 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:57:45 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:57:35 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:37:18 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:37:05 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:20:21 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:20:13 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 18:19:59 -03:00
Rodrigo Nader
1a318a82ae
Update README.md 2023-06-25 17:40:14 -03:00
Gustavo Schaedler
3287f45137
Add LLM cache (#541)
 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.
2023-06-25 21:00:34 +01:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 09:27:44 -03:00
Gabriel Luiz Freitas Almeida
d523b7f8b0 fix: removing placeholders 2023-06-25 09:26:13 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-25 09:12:41 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:53:13 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:38:24 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:38:11 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:32:48 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:32:32 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:32:00 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-24 16:31:47 -03:00
Gabriel Luiz Freitas Almeida
3be8ac0d72 Update settings structure 2023-06-24 16:31:39 -03:00
Cristhian Zanforlin Lousa
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
2023-06-24 11:03:36 -03:00
Cristhian Zanforlin Lousa
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
2023-06-23 20:15:44 -03:00
Gabriel Luiz Freitas Almeida
c94094a2e7
Release 0.2 (#537) 2023-06-23 22:52:46 +00:00
Gabriel Luiz Freitas Almeida
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.
2023-06-23 19:48:45 -03:00
Cristhian Zanforlin Lousa
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
2023-06-23 19:18:31 -03:00
Cristhian Zanforlin Lousa
27d7553fb6
Icons style - Lucide Icons (#529)
🎨 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

 feat(utils.ts): add support for Lucide icons to be used in the app to
improve UI and UX.
2023-06-23 18:34:52 -03:00
anovazzi1
1af05a2c97
Bugfix modals (#535) 2023-06-23 18:32:54 -03:00
Cristhian Zanforlin Lousa
f0476e20df 🎨 style(inputFileComponent): reduce size of FileSearch2 icon to improve UI aesthetics 2023-06-23 18:30:35 -03:00
Cristhian Zanforlin Lousa
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
2023-06-23 18:27:51 -03:00
anovazzi1
faaa707722 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-06-23 18:26:50 -03:00
anovazzi1
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
2023-06-23 18:26:31 -03:00
Cristhian Zanforlin Lousa
3b20a40af8 Formatting code 2023-06-23 18:08:16 -03:00
Cristhian Zanforlin Lousa
eac1f7c922 Merge fix with dev 2023-06-23 18:06:51 -03:00
Cristhian Zanforlin Lousa
facfe6ac57 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-06-23 18:03:17 -03:00
Cristhian Zanforlin Lousa
c788d4c200 🐛 fix(extraSidebarComponent): fix key prop in DisclosureComponent and TooltipComponent to use unique values 2023-06-23 18:02:07 -03:00
anovazzi1
46b247d1a1
Remove unnecessary text-sm class from message sender name to improve readability (#531)
🐛 fix(chatMessage): remove unnecessary text-sm class from message sender
name to improve readability
2023-06-23 17:53:38 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-06-23 17:52:59 -03:00
anovazzi1
247e911620 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-06-23 17:30:09 -03:00
anovazzi1
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
2023-06-23 17:29:26 -03:00
anovazzi1
fc17bc541b refactor(dropdownComponent): add useEffect hook to update internalValue when value prop changes to avoid stale data 2023-06-23 17:28:33 -03:00
Gabriel Luiz Freitas Almeida
3940c0959d
Gitloader (#533)
Added GitLoader
2023-06-23 20:24:24 +00:00
anovazzi1
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 2023-06-23 17:11:08 -03:00
anovazzi1
07125b8c8c Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-06-23 17:09:22 -03:00
anovazzi1
9bee33fa18 refactor(extraSidebarComponent): change variable name 't' to 'displayName' for better readability and clarity of code 2023-06-23 17:09:12 -03:00