-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example loader and bugfixes #199
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…they are from the evaluated string
refactor(tools/base.py): comment out unused code for ToolCreator feat(nodes.py): add 'return_direct' field to ToolNode template and set base class to 'Tool'
…s where langchain_object has no prompt attribute
…ow.json") returns "UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 9465: character maps to <undefined>". Specifying the encodint type in the function helps to fix that error.
Fix this for future users so they can get it up and running without having to probe the GitHub forum
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.
…re instantiation feat(loading.py): add optional build parameter to load_flow_from_json function
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.
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.
…en fields to support loading from environment variables
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.
…n tests for huggingfacehub_api_token, openai_api_key, and chat_openai_api_key in llms_template.
anovazzi1
approved these changes
Apr 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.