Commit graph

6,039 commits

Author SHA1 Message Date
Gabriel Almeida
7af5f68861 feat(validate): add debounced validation for nodes in GenericNode component
fix(validate): set validation status to "success" or "error" based on response status
feat(validate): add state for validation status and outline color in GenericNode component
refactor(validate): use useDebouncedCallback hook for debouncing validation function
refactor(validate): simplify useEffect dependencies in GenericNode component
2023-04-25 14:31:57 -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
ce7e9d0254 shortcut on ctrl shift k 2023-04-24 23:31:42 -03:00
anovazzi1
7c16616273 chat popUp not using popUp context 2023-04-24 23:21:22 -03:00
anovazzi1
152525decc chat clear 2023-04-24 23:10:51 -03:00
anovazzi1
68870301f3 chat modal messages firts version finished 2023-04-24 22:04:25 -03:00
anovazzi1
020e9c8461 chat modal working 2023-04-24 21:10:51 -03:00
anovazzi1
2c0b846f54 migrate chat logic to chat modal 2023-04-24 21:02:23 -03:00
anovazzi1
8ed1ea92d4 clean chat area 2023-04-24 20:03:05 -03:00
anovazzi1
9464b8790c added chat trigger component 2023-04-24 19:25:33 -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
anovazzi1
a8f2d69f9a updated type type context, need to change place where call api 2023-04-24 18:40:24 -03:00
anovazzi1
9e76c50f09 bug found migrate template code to types context 2023-04-24 18:31:03 -03:00
anovazzi1
2146025d42 Merge branch 'dev' into autoUpdateNodes 2023-04-24 18:02:48 -03:00
Gabriel Almeida
f122151b12 fix(validate.py): raise an exception with a message when node is not found
feat(GenericNode): add node validation with outline color feedback
feat(tailwind.config.js): add styles for outline colors and animations
2023-04-24 13:43:52 -03:00
Gabriel Almeida
09320824a9 refactor(validate.py): extract build_graph function to langflow.interface.run module
feat(validate.py): add post_validate_node endpoint to validate a single node in the graph by its id
2023-04-24 10:32:15 -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
Gabriel Almeida
ebc1f6a0df feat(api): add callback handler for streaming LLM responses
Add a new file `callback.py` that contains a new class `StreamingLLMCallbackHandler` that inherits from `AsyncCallbackHandler`. This class handles streaming LLM responses. It has a constructor that takes a `websocket` parameter and sets it as an instance variable. It also has an `on_llm_new_token` method that takes a `token` parameter and sends a `ChatResponse` object to the `websocket` instance variable.

Update `chat_manager.py` to import the new `StreamingLLMCallbackHandler` class. Add a new function `try_setting_streaming_options` that takes a `langchain_object` and a `websocket` parameter. This function checks if the `llm` attribute of the `langchain_object` is an instance of `OpenAI`, `ChatOpenAI`, `AzureOpenAI`, or `AzureChatOpenAI`. If it is, it sets the
2023-04-23 14:31:21 -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
Robert Wilkins III
90633c3915 revert var expansion test 2023-04-21 12:22:12 -03:00
Robert Wilkins III
7ef97e1334 testing var expansion 2023-04-21 12:22:12 -03:00
Robert Wilkins III
6efa1b7377 set project config 2023-04-21 12:22:12 -03:00
Robert Wilkins III
98be8f87e4 remove login prompt for ephemeral cloudshell 2023-04-21 12:22:12 -03:00
Robert Wilkins III
9c9b69db59 add cloudshell repo trust advisory 2023-04-21 12:22:12 -03:00
Robert Wilkins III
08a1739fa7 force gcp login in ephemeral cloudshell 2023-04-21 12:22:12 -03:00
Robert Wilkins III
9a06ff54c7 match bash script to walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
bfdbabed55 fix bash command launch 2023-04-21 12:22:12 -03:00
Robert Wilkins III
e5aece49bf remove comments that show up in walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
aeabaa32cd remove scripted steps from walkthrough 2023-04-21 12:22:12 -03:00