Commit graph

729 commits

Author SHA1 Message Date
Gabriel Almeida
04579a25a2 🚀 chore(config.yaml): update config.yaml file with new documentloaders, memories, prompts, textsplitters, toolkits, utilities, and vectorstores
 feat(config.yaml): add Qdrant vectorstore and RequestsWrapper to the config.yaml file
The config.yaml file has been updated with new documentloaders, memories, prompts, textsplitters, toolkits, utilities, and vectorstores. The Qdrant vectorstore has been added to the vectorstores section. The RequestsWrapper has been added to the wrappers section.
2023-05-26 18:23:15 -03:00
Gabriel Almeida
7280fae428 Merge branch 'dev' into 335-implement-docarray-vectorstore 2023-05-26 18:22:40 -03:00
Gabriel Almeida
a66adff004 🔥 refactor(custom_lists.py): remove unused vectorstores_type_to_cls_dict variable
🔨 refactor(vector_store/base.py): refactor VectorstoreCreator to use import_class from langflow.interface.importing.utils
The `vectorstores_type_to_cls_dict` variable was not being used, so it was removed. The `VectorstoreCreator` class was refactored to use the `import_class` function from `langflow.interface.importing.utils` instead of importing it directly. This improves the code's readability and maintainability.
2023-05-24 09:27:00 -03:00
anovazzi1
0c45186fcb
hot fix for dinamic size of font for buttonBox component (#337)
## Dynamic Font Size for ButtonBox Component

### Description
The ButtonBox component, which is used in the examples modal, has been
enhanced to have a dynamic font size that adjusts based on the length of
the text and the dimensions of its parent element. This improvement
ensures that the text within the ButtonBox component remains readable
and properly fits within its container.

### Changes Made
- Added a new `fontSize` state variable to track the font size within
the ButtonBox component.
- Utilized the `useEffect` hook to calculate and update the font size
dynamically.
- Implemented logic to check for both vertical and horizontal overflow
of the text within the parent container.
- Decreased the font size incrementally until the text fits within the
parent element's dimensions.
- Updated the component to apply the calculated font size to the text
element.

### Testing Done
- Manually tested the ButtonBox component with various text lengths and
parent container dimensions.
- Verified that the font size was adjusted correctly to fit the text
within the parent element without overflowing.
2023-05-24 01:41:20 -03:00
Lucas Oliveira
62701de9b8 Fixed Undo and Redo on different pages 2023-05-23 21:00:12 -03:00
anovazzi1
f7cf6a378f create min font size with truncate for buttonBox component 2023-05-23 19:28:27 -03:00
Gabriel Almeida
e597a6e20a 🔀 chore(config): add DocArrayHnswSearch and DocArrayInMemorySearch to vectorstores
🐛 fix(base.py): correctly handle nested lists in Node.build() method
 feat(vector_store): add VectorStoreFrontendNode to handle vector store templates
🐛 fix(util.py): add build_template_from_method to correctly build templates from class methods
The configuration file now includes two new vector stores, DocArrayHnswSearch and DocArrayInMemorySearch. The Node.build() method now correctly handles nested lists. A new VectorStoreFrontendNode has been added to handle vector store templates. The build_template_from_method function has been added to correctly build templates from class methods.

Issue #335
2023-05-23 16:51:29 -03:00
anovazzi1
3f854a88ae hot fix for dinamic size of font for buttonBox component 2023-05-23 16:31:20 -03:00
Gabriel Almeida
ddf75d7eb9 🔥 refactor(run.py): remove NotEnoughElementsException import and exception handling
Chroma implemented a fix for this so this exception won't be thrown anymore.
2023-05-23 12:02:55 -03:00
Gabriel Almeida
7228274b0d Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-05-23 10:40:25 -03:00
anovazzi1
3a7644dd2c updating font size of import card based on title 2023-05-23 01:06:49 -03:00
anovazzi1
e3656f7998 update display_name of llm to LLM 2023-05-22 23:41:07 -03:00
anovazzi1
c46b1f67f3 new toogle using tailwindUI 2023-05-22 23:29:12 -03:00
Gabriel Almeida
14f27df3ae Merge branch 'main' into dev 2023-05-22 20:09:21 -03:00
Lucas Oliveira
c8594a16c3 Changed name of function to disable copy and paste 2023-05-22 20:02:35 -03:00
Lucas Oliveira
2b6b790f4a Fixed padding and disable copy and paste on chat input 2023-05-22 20:01:26 -03:00
Lucas Oliveira
610beb18dd Fixed Copy and Paste, refactored tabsContext code 2023-05-22 19:54:32 -03:00
Lucas Oliveira
f465d9712d Fixed Copy and Paste bug on Code Area 2023-05-22 19:38:31 -03:00
Rodrigo Nader
1c0626527a Refactor UI styles for better readability
- Modified UI styles in the app, making text more legible and buttons more visually appealing
- Changed chat trigger button to a gradient blue background to improve visibility and user experience
2023-05-22 18:24:52 -03:00
Rodrigo Nader
2d6d781e91 Refactor: Simplify span element code and rename 'documentloaders' to 'Loaders'
This commit simplifies the span element code by removing a padding and renames the 'documentLoaders' property in the object to 'Loaders'.
2023-05-22 17:47:17 -03:00
Gabriel Almeida
3ba7068500 🎨 style(App.tsx): adjust the position of the link to Logspace website
The position of the link to the Logspace website has been adjusted to be more centered on the page. The left margin has been increased by one unit to make it more visually appealing.
2023-05-22 17:39:18 -03:00
Gabriel Almeida
b247ebcc40 🐛 fix(chatInput): fix chat input resizing issue
 feat(chatModal): add focus to chat input when modal is opened
The chat input was not resizing properly when the user typed more than one line of text. This was fixed by setting the height of the input to the scrollHeight of the input element. Additionally, the chat input is now focused when the chat modal is opened, which improves the user experience.

Fixes Text area is broken #328
2023-05-22 17:26:34 -03:00
Gabriel Almeida
802e5ec31a Format 2023-05-22 16:44:36 -03:00
Gabriel Almeida
13403de3fc 🚀 feat(App.tsx): add version number to the footer
The version number is now displayed in the footer of the application. The version number is fetched from the server using the /version endpoint and displayed in the footer. This allows users to easily identify which version of the application they are using.
2023-05-22 08:39:39 -03:00
Gabriel Almeida
3c3576e0ad Format 2023-05-22 08:39:03 -03:00
Gabriel Almeida
5635a86f04 🐛 fix(tabsContext.tsx): add null check for flow.data to prevent errors
The code now checks if flow.data is null before iterating over its nodes. This prevents errors that would occur when flow.data is null.
2023-05-22 08:21:52 -03:00
Gabriel Almeida
4998838853 format 2023-05-22 08:21:29 -03:00
Gabriel Almeida
9860b12b91 remove line-clamp as it is in tailwind by default now 2023-05-22 08:19:59 -03:00
Gabriel Almeida
e4e0049c2b Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-05-22 08:02:45 -03:00
Gabriel Luiz Freitas Almeida
b277c0bf1a
node updating template, base classes and description (#326) 2023-05-22 08:02:00 -03:00
Gabriel Almeida
aeba16fa8a 🔥 chore(lcserve.py): remove unused import statements
The import statements for pathlib.Path and fastapi.staticfiles.StaticFiles were not used in the code and were therefore removed to improve code readability and maintainability.
2023-05-22 07:46:40 -03:00
anovazzi1
a6c9c28792 removed useless comment 2023-05-22 00:22:05 -03:00
anovazzi1
e85c918e6f node updating update node template, base classes and description 2023-05-19 17:18:41 -03:00
Gabriel Almeida
c93c4627d0 feat(typesContext.tsx): add retry logic to getAll API call
This commit adds retry logic to the getAll API call in the TypesProvider component. The retry logic will attempt to make the API call up to 5 times with an increasing delay between each attempt. If the API call is successful, the state of the component will be updated with the retrieved data. If the component is unmounted before the API call resolves, the state will not be updated.
2023-05-19 10:07:13 -03:00
Gabriel Almeida
0d43252478 format 2023-05-19 10:06:59 -03:00
Gabriel Almeida
e1120bba4e style(chatModal): format code with prettier
This commit formats the code in the chatModal component using prettier to
make it more readable and consistent. No functional changes were made.
2023-05-19 10:05:32 -03:00
Deepankar Mahapatro
18aaede030 chore: lint fix 2023-05-18 16:55:40 +05:30
Deepankar Mahapatro
fd638994cb
Merge branch 'logspace-ai:dev' into dev 2023-05-18 12:06:14 +05:30
Gabriel Almeida
1338fa3521 refactor(embeddings/base.py): add EmbeddingFrontendNode as a property of EmbeddingCreator
fix(loading.py): remove headers from params before instantiating embedding
refactor(nodes.py): add EmbeddingFrontendNode and hide headers field in it
2023-05-17 15:14:06 -03:00
Gabriel Almeida
f6d977f139 style(nodes, GenericNode): fix indentation and add line breaks for readability 2023-05-17 14:46:36 -03:00
Gabriel Almeida
3810589876 format 2023-05-17 12:54:10 -03:00
Gabriel Almeida
9411239a5b feat(GenericNode): add validation status icons and tooltips to node parameters and fix validation status state update 2023-05-17 12:50:42 -03:00
Gabriel Almeida
0e200d8992 fix(validate.py): return exception message in response when validation fails 2023-05-17 12:19:24 -03:00
Gabriel Almeida
6afebffe1f style(tailwind.config.js): added dark theme for attribution 2023-05-17 11:28:18 -03:00
Gabriel Luiz Freitas Almeida
4a9d1c7c54
Merge branch 'main' into hotfix 2023-05-17 11:22:17 -03:00
Gabriel Almeida
c92f3109e8 style(chatTrigger): adjust chat trigger button position by changing bottom margin from 4 to 6 2023-05-17 11:03:46 -03:00
Gabriel Almeida
c47ee2cd5e format 2023-05-17 11:03:29 -03:00
Gabriel Almeida
0da4bf3b60 Merge branch 'dev' into hotfix 2023-05-17 10:59:01 -03:00
Gabriel Almeida
a921a83d27 Merge remote-tracking branch 'origin/main' into dev 2023-05-17 10:54:51 -03:00
anovazzi1
df00fbe32e flow saving itself in local browser history 2023-05-17 10:30:36 -03:00