Commit graph

903 commits

Author SHA1 Message Date
anovazzi1
cfe74e6765 Merge branch 'NodeModal' of personal:logspace-ai/langflow into NodeModal 2023-04-28 19:41:26 -03:00
anovazzi1
11b82aa556 hide advanced icon if all the fields aren't advanced 2023-04-28 19:41:17 -03:00
Gabriel Almeida
f3d385b8e5 feat(tests): add "advanced" field to all template objects in test files
feat(tests): add 'advanced' field to template properties in test files
2023-04-28 19:18:17 -03:00
Gabriel Almeida
0fd8f73c08 refactor(langflow): set advanced flag to True for TemplateFieldCreator class
refactor(langflow): set advanced flag to False for LLMFrontendNode class' api key field
feat(langflow): add show flag to LLMFrontendNode class' model_kwargs field
refactor(langflow): set advanced flag to False and show flag to True for LLMFrontendNode class' model_name and temperature fields
2023-04-28 19:17:38 -03:00
anovazzi1
69c7bbb0a9 fixed wrong bolean logic, now show in modal only if show is true 2023-04-27 20:48:52 -03:00
anovazzi1
1f9cc38fd8 Merge branch 'dev' into NodeModal 2023-04-27 20:37:04 -03:00
anovazzi1
65172707d9 Merge branch 'dev' into NodeModal 2023-04-27 20:22:21 -03:00
anovazzi1
be25947f55 check if show if false to add item on advanced modal 2023-04-27 19:36:37 -03:00
Gabriel Luiz Freitas Almeida
700061ce19
Update the Semver Specifier for langchain to allow for all <0.1.0 versions. (#86) 2023-04-27 17:13:21 -03:00
Gabriel Almeida
7659fbffcd chore(pyproject.toml): update langchain dependency from ~0.0.113 to ~0.0.150 2023-04-27 17:04:35 -03:00
Gabriel Luiz Freitas Almeida
10cabefa5a
Merge branch 'dev' into task/update_langchain_semver 2023-04-27 16:58:50 -03:00
Gabriel Luiz Freitas Almeida
d78f8bea2c
Merge branch 'main' into task/update_langchain_semver 2023-04-27 16:57:22 -03:00
Gabriel Almeida
a067b38d9a build(pyproject.toml): add pytest-cov package to dev dependencies 2023-04-27 15:03:11 -03:00
Gabriel Almeida
3b5b63e070 refactor(loading.py): add comment explaining type ignore for agent variable 2023-04-27 15:03:11 -03:00
Gabriel Almeida
f00420ecbe feat(custom.py): pass llm parameter to SQLDatabaseToolkit constructor 2023-04-27 15:03:11 -03:00
Gabriel Almeida
5610073386 chore(pyproject.toml): update package version from 0.0.58 to 0.0.59 2023-04-27 15:03:11 -03:00
Gabriel Almeida
7309734307 chore(pyproject.toml): update langchain dependency from 0.0.131 to 0.0.150 2023-04-27 15:03:11 -03:00
anovazzi1
1f095cc056
Example loader and bugfixes (#199) 2023-04-25 23:27:16 -03:00
Gabriel Almeida
7eeffc5a6e chore(pyproject.toml): update langflow package version from 0.0.57 to 0.0.58 2023-04-25 21:08:37 -03:00
Gabriel Almeida
601ec86273 style(langflow): fix formatting and add type hinting to custom.py and run.py files 2023-04-25 17:47:43 -03:00
Gabriel Almeida
41f1ba798a refactor(test_llms_template.py): change required fields to optional in tests for huggingfacehub_api_token, openai_api_key, and chat_openai_api_key in llms_template. 2023-04-25 15:38:21 -03:00
Gabriel Almeida
0f0366ebbb Refactor chromadb import in run.py for type hinting
This commit modifies run.py to use type hinting and avoid circular imports by changing the import for NotEnoughElementsException to use type: ignore. Specifically, the code now imports from chromadb.errors instead of chromadb.exceptions.
2023-04-25 15:38:21 -03:00
Gabriel Almeida
c14fb1eac3 feat(base.py): add logic to detect api keys in FrontendNode fields 2023-04-25 15:38:21 -03:00
Gabriel Almeida
3497161105 fix(base.py): set OpenAI API Key field as not required 2023-04-25 15:38:21 -03:00
Gabriel Almeida
c6d2d96da8 refactor(nodes.py): set 'required' field to False for API key and token fields to support loading from environment variables 2023-04-25 15:38:21 -03:00
Gabriel Almeida
39ca499dea style(README.md): Added Open in HF Spaces badge 2023-04-25 11:42:41 -03:00
Gabriel Almeida
c522727d6e Refactor ImportModal code to use useState and useContext hooks
This commit refactors the code for the ImportModal component to use hooks like useState and useContext, resulting in improved readability and maintainability. It also adds functionality to load prebuilt examples and handle local file uploads.
2023-04-25 11:03:11 -03:00
Gabriel Almeida
9f5f222f2a refactor(base.py): remove print statement from ToolCreator class 2023-04-25 09:38:28 -03:00
anovazzi1
b3155a58a9
Add Import Examples Feature to Flow Editor (#175)
This pull request adds a new feature to the flow editor that allows
users to easily import example flows from the
[logspace-ai/langflow_examples](https://github.com/logspace-ai/langflow_examples)
repository on GitHub. The feature is accessible via the import example
button

Clicking on the "Import Examples" button opens a dialog box that
displays a list of available example flows from the GitHub repository.
Users can select one example to import, and the flow editor will
automatically add the selected flow to the user's current project.

This feature saves users time and effort by providing a convenient way
to explore and utilize pre-built flows.

Additionally, this feature promotes collaboration and community
involvement by encouraging users to contribute their own flows to the
repository for others to use and benefit from.
2023-04-24 19:08:21 -03:00
anovazzi1
a15d605cc8 update styles 2023-04-24 19:03:20 -03:00
Gabriel Almeida
23eb511560 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-04-24 08:40:49 -03:00
Gabriel Almeida
23fbec9d42 feat(loading.py): add error handling for empty documents in vectorstore instantiation
feat(loading.py): add optional build parameter to load_flow_from_json function
2023-04-24 08:40:06 -03:00
Rodrigo Nader
76162a9ffa feat(langflow): Handle ChromaDB NotEnoughElementsException
This change adds error handling to catch a specific exception that may occur when processing documents with the ChromaDB library. If there are not enough documents for indexing, the error message will suggest reducing the chunk size in TextSplitter.
2023-04-23 23:06:10 -03:00
Gabriel Luiz Freitas Almeida
ad24cdc1dd Update README.md 2023-04-23 14:37:11 -03:00
Paul Lockett
b1971570c9 Correct run instructions
Fix this for future users so they can get it up and running without having to probe the  GitHub forum
2023-04-23 14:37:11 -03:00
Robert Wilkins III
b9a9892db6 layout changes 2023-04-21 12:22:12 -03:00
Robert Wilkins III
e90b036b01 remove the nats 2023-04-21 12:22:12 -03:00
Robert Wilkins III
adc93c7902 improve grammer and remove nat 2023-04-21 12:22:12 -03:00
Robert Wilkins III
dada24a5e6 add spot instance support and pricing 2023-04-21 12:22:12 -03:00
Robert Wilkins III
6a59d64a0d remove redundant wording 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b6ae41eef0 more styling 2023-04-21 12:22:12 -03:00
Robert Wilkins III
56e4ae1fcd add styling 2023-04-21 12:22:12 -03:00
Robert Wilkins III
57d83740f1 improve readability 2023-04-21 12:22:12 -03:00
Robert Wilkins III
5a7072175f move trophy toward end of walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
37bdafa9db clarify notes to connect to vm 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b9a0e55d43 remove input tag 2023-04-21 12:22:12 -03:00
Robert Wilkins III
f46e27d1f0 vars and trophies 2023-04-21 12:22:12 -03:00
Robert Wilkins III
d310a8172f provide user with link to langflow server 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b54b0f0904 var expansion alt test 2023-04-21 12:22:12 -03:00
Robert Wilkins III
c4ebb0a3f6 var expansion again 2023-04-21 12:22:12 -03:00