Commit graph

356 commits

Author SHA1 Message Date
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
0e200d8992 fix(validate.py): return exception message in response when validation fails 2023-05-17 12:19:24 -03:00
Deepankar Mahapatro
a2e5fab637 ci: trigger workflow during release 2023-05-17 16:36:13 +05:30
Deepankar Mahapatro
fb9c76e610
Merge branch 'dev' into dev 2023-05-16 21:22:49 +05:30
Gabriel Almeida
5e7ce9dc7b feat(langflow): add /health endpoint to API
refactor(langflow): remove redundant /health endpoint from main.py
2023-05-16 11:41:40 -03:00
Gabriel Almeida
e3f27aaebf chore(custom.py): update import for langchain 0.0.170 2023-05-16 10:44:02 -03:00
Gabriel Almeida
712d212b82 feat(endpoints.py): add get_version endpoint to return version of langflow 2023-05-16 10:43:52 -03:00
Deepankar Mahapatro
2eec5fb3a7 build: make langchain-serve optional 2023-05-16 16:17:30 +05:30
Deepankar Mahapatro
943d3aa4a6
Merge branch 'logspace-ai:dev' into dev 2023-05-16 14:46:44 +05:30
Deepankar Mahapatro
54da71cc0a build: make langchain-serve optional 2023-05-16 13:34:34 +05:30
Filipe Caixeta
cba7f31d6f
Add health check endpoint 2023-05-15 23:01:07 -03:00
Gabriel Almeida
eb86c8be64 refactor(loading.py): swap parameters order in instantiate_prompt function to match other functions 2023-05-15 14:12:12 -03:00
Deepankar Mahapatro
916e4dfa80 feat: deploy langflow using langchain-serve 2023-05-15 19:57:48 +05:30
Deepankar Mahapatro
5d8f18f046 feat: deploy langflow using langchain-serve 2023-05-15 18:17:14 +05:30
Deepankar Mahapatro
e4f99b7971 feat: deploy langflow using langchain-serve 2023-05-15 17:56:26 +05:30
Deepankar Mahapatro
9bbd013dcb
Merge branch 'logspace-ai:dev' into dev 2023-05-15 17:48:52 +05:30
Deepankar Mahapatro
52093240b1 feat: deploy langflow using langchain-serve 2023-05-15 17:48:02 +05:30
Gabriel Almeida
9627005f8d refactor(loading.py): change instantiate_prompt function signature to include class_object parameter and use it to instantiate the prompt object 2023-05-14 20:21:42 -03:00
Gabriel Almeida
2bc7d3afd8 temporary fix for intermediate steps 2023-05-13 21:49:06 -03:00
Gabriel Almeida
4853a701d3 refactor(validate.py): add error handling and logging to post_validate_node function
feat(graph/base.py): add _built_object_repr method to Node class
feat(graph/nodes.py): add _built_object_repr method to DocumentLoaderNode, VectorStoreNode, and TextSplitterNode classes
2023-05-12 09:39:35 -03:00
Gabriel Almeida
d55d209dc3 formatting 2023-05-11 14:33:52 -03:00
Lucas Oliveira
97c60eaa5d Merge branch 'dev' into frontChanges 2023-05-11 13:59:12 -03:00
Gabriel Almeida
2e16618e47 refactor(chat_manager.py): use dict.pop() method to remove client_id from active_connections dictionary 2023-05-11 11:15:51 -03:00
Gabriel Almeida
b16084d927 fix(chat_manager.py): limit the length of the exception message to 120 characters 2023-05-11 10:18:07 -03:00
Gabriel Almeida
fd5f5784b8 refactor(api): remove unused imports in chat_manager.py and endpoints.py 2023-05-10 22:50:43 -03:00
Gabriel Almeida
e50e9b187c style(chat.py): format imports using PEP8 style guide 2023-05-10 22:49:01 -03:00
Gabriel Almeida
4046a7b1e5 refactor(agents/custom.py): create CustomAgentExecutor abstract class and make all agents inherit from it
fix(agents/custom.py): fix import error for NotEnoughElementsException
refactor(run.py): remove unused import statement for loading module
2023-05-10 22:48:49 -03:00
Gabriel Almeida
2ffc8b266f feat(nodes.py): add optional memory field to MidJourneyPromptChainNode class constructor 2023-05-10 22:31:16 -03:00
Gabriel Almeida
7fde19b36a fix(chat_manager.py): handle case where client is not in active_connections dictionary and remove duplicate code in finally block 2023-05-10 12:17:52 -03:00
Gabriel Almeida
6b6ac17167 fix(chat_manager.py): close websocket connection with status code 1011 and error message on exception 2023-05-10 12:09:14 -03:00
Gabriel Almeida
55d18426fc fix(chat_manager.py): fix chat history message to add response instead of request message 2023-05-10 11:57:29 -03:00
Gabriel Almeida
f83160cf21 refactor(langflow): organize imports in multiple files
This commit organizes imports in multiple files to follow PEP8 guidelines
and improve code readability. No functionality changes were made.
2023-05-10 11:42:36 -03:00
Gabriel Almeida
7c1c513106 refactor(loading.py): refactor instantiate_class function to improve readability and maintainability 2023-05-10 11:41:34 -03:00
Gabriel Almeida
31062f2a8c refactor(run.py): remove unused process_graph function
refactor(test_graph.py): update get_result_and_steps to get_result_and_thought function name
2023-05-10 11:31:06 -03:00
Gabriel Almeida
222bb119d3 refactor(chat_manager.py): remove unused code and method call in ChatManager constructor
refactor(chat_manager.py): remove unused method call in ChatManager.handle_message()
2023-05-10 11:30:46 -03:00
Gabriel Almeida
fc007e4349 Merge remote-tracking branch 'origin/dev' into streaming 2023-05-10 11:19:04 -03:00
Lucas Oliveira
b8c95fb7ec Get data from Validate Nodes and display it on Tooltip 2023-05-09 16:56:05 -03:00
Gabriel Almeida
79fb021307 refactor(chat_manager.py): remove unused code block in ChatManager class 2023-05-09 16:52:04 -03:00
Gabriel Almeida
0bc96208e4 refactor(api): change predict endpoint to use async/await and add response model
feat(api): add predict request and response schemas
refactor(interface): rename get_result_and_steps to get_result_and_thought and remove async prefix
fix(interface): use get_result_and_thought instead of async_get_result_and_steps in process_graph_cached
2023-05-09 13:19:19 -03:00
Gabriel Almeida
f6bc152dab fix(chat_manager.py): add missing import statement
feat(chat_manager.py): add chat message to chat history when received and sent
2023-05-09 12:37:15 -03:00
Gabriel Almeida
8810a0392a refactor(langflow): rename BaseLLM to BaseLanguageModel in multiple files
fix(langflow): fix type hints in multiple files
2023-05-08 15:05:28 -03:00
Gabriel Almeida
7b8aaef359 feat(config.yaml): add GoogleSerperRun tool to the list of available tools 2023-05-07 20:15:29 +00:00
Gabriel Almeida
7ae42bf7d2 refactor(importing/utils.py): move tool_creator import to import_tool function
refactor(tools/base.py): remove redundant variable assignment
refactor(tools/constants.py): import all tools dynamically using __all__ attribute of langchain.tools module
2023-05-07 20:15:29 +00:00
Gabriel Almeida
bbf4f5ce1a chore(agents): add type ignore comments to ZeroShotAgent instantiation
The `ZeroShotAgent` instantiation in `JsonAgent`, `CSVAgent`, `VectorStoreAgent`, `SQLAgent`, and `MalfoyAgent` classes were updated to include a `# type: ignore` comment to suppress type checking errors.
2023-05-07 20:15:29 +00:00
Gabriel Almeida
1d5f156a22 refactor(cache): add cache attribute to memoized function wrapper
refactor(test_cache.py): update import statements and function names
test(cache): add tests for load_or_build_langchain_object, build_langchain_object_with_caching, build_graph, and cache size limit
2023-05-07 20:15:29 +00:00
Gabriel Almeida
fa9825849a fix(validate.py): change logger.exception to logger.error to avoid logging traceback 2023-05-07 20:15:29 +00:00