Commit graph

329 commits

Author SHA1 Message Date
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
Petru Molla
801ff57dc0 Update loading.py 2023-04-20 16:06:22 -03:00
Gabriel Luiz Freitas Almeida
ded527a64a Update loading.py 2023-04-20 16:06:22 -03:00
Petru Molla
68f69e878e Using an exported Flow JSON file with load_flow_from_json("path/to/flow.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.
2023-04-20 16:06:22 -03:00
Ibis Prevedello
46e76c8ca4 feat: add SQLDatabaseChain
Close #173
2023-04-20 15:17:23 -03:00
Ibis Prevedello
843ae8efc5 feat: add extra tools and utilities 2023-04-20 15:17:23 -03:00
Ibis Prevedello
571f407ef3 refac: refactor tools and add QuerySQLDataBaseTool 2023-04-20 15:17:23 -03:00
Gabriel Almeida
8721083c25 refactor(run.py): simplify fix_memory_inputs function and handle cases where langchain_object has no prompt attribute 2023-04-19 00:48:06 -03:00
Gabriel Almeida
cd241c22c7 refactor(loading.py): add support for instantiating tool nodes
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'
2023-04-19 00:46:57 -03:00
Gabriel Almeida
a0da9c6111 refactor(validate.py): filter function objects by filename to ensure they are from the evaluated string 2023-04-18 21:27:47 -03:00
Ibis Prevedello
e1f4041908 Fix bug when running LLM alone
Fix #117
2023-04-17 16:57:49 -03:00
Ibis Prevedello
ec0c6c79c1 feat: add SQL agent 2023-04-13 22:33:46 -03:00
Ibis Prevedello
3d211fc487 fix test, linting, and vector_store folder 2023-04-13 22:12:21 -03:00
Ibis Prevedello
ba1f7daa7a refac: change docstring parser 2023-04-13 21:39:25 -03:00
Gabriel Almeida
ce542e9337 fix(langflow): return None when a node is not loaded in LangChainTypeCreator classes 2023-04-13 15:54:40 -03:00
Gabriel Almeida
6d2f948bdb refactor(base.py): remove unnecessary comment
feat(base.py): add support for int type in node value
feat(base.py): add support for chunk_size and chunk_overlap in TextSplitterCreator signature
2023-04-13 15:45:08 -03:00
Gabriel Almeida
b56d905042 fix conflicts 2023-04-13 12:00:07 -03:00
Gabriel Almeida
c28e6ad62d fix: fix import paths for several modules
feat: add logging for missing nodes in LangChainTypeCreator classes
feat: add support for custom TextLoader document loader
fix: fix typo in document loaders base module name
fix: fix typo in text_splitters package name and add __init__.py file

refactor(interface): rename textSplitters to text_splitters
refactor(interface): rename documentLoaders to document_loaders
refactor(interface): rename vectorStore to vectorstore
refactor(interface): rename toolkits to toolkit
refactor(interface): rename tools to tool
refactor(interface): rename prompts to prompt
refactor(interface): rename memories to memory
refactor(interface): rename embeddings to embedding
refactor(interface): rename wrappers to wrapper
fix(interface): fix typo in text_splitters/base.py
fix(interface): fix typo in toolkits/base.py
fix(interface): fix typo in vectorstore/base.py
fix(interface): fix typo in wrappers/base.py
feat(interface): add logging for when a type is not loaded
2023-04-13 11:57:10 -03:00
Ibis Prevedello
b9ef727248 refac: remove UnstructuredImageLoader because of issue with Python 3.11 2023-04-13 11:52:42 -03:00
Ibis Prevedello
41c2ba9639 refac: add decorator to create cache folder 2023-04-13 11:52:42 -03:00
Ibis Prevedello
c69e5a72f0 feat: add document loaders 2023-04-13 11:52:42 -03:00
Ibis Prevedello
296ecafdcf refac: change cache folder 2023-04-13 11:52:42 -03:00
Gabriel Luiz Freitas Almeida
396cb7be2b
Merge branch 'dev' into 146-improve-conversationchain-node 2023-04-10 19:20:56 -03:00
Gabriel Almeida
103cb84394 Merge branch 'dev', remote-tracking branch 'origin' into 146-improve-conversationchain-node 2023-04-10 19:18:31 -03:00
Gabriel Luiz Freitas Almeida
e1ca085a7a
Vector stores, embeddings, document loaders, and text splitters (#145) 2023-04-10 19:16:45 -03:00
anovazzi1
36a083799f removable edges implemented 2023-04-10 18:49:35 -03:00
anovazzi1
fe98187b82 using local font family for working on firefox without web 2023-04-10 17:42:37 -03:00
anovazzi1
357dfbd009 solved issue for firefox, with internet connection 2023-04-10 17:23:04 -03:00
Gabriel Almeida
026482bef4 feat(nodes.py): add required and show properties to input_key and output_key fields in ChainFrontendNode
feat(nodes.py): add show property to prompt field in LLMFrontendNode
fix(nodes.py): set password property to False for MemoryFrontendNode's Memory Size field
2023-04-10 15:12:54 -03:00
Gabriel Almeida
16843fd66d fix: prompt fields are never password 2023-04-10 12:23:00 -03:00
Ibis Prevedello
81c634f839 fix: fix lint and formatting 2023-04-10 12:01:13 -03:00
Ibis Prevedello
a6644176d4 feat: change icons, colors and fix minor bug 2023-04-10 11:53:34 -03:00
Ibis Prevedello
fee2e52ec1 Merge branch 'dev' into vecstores 2023-04-10 10:20:56 -03:00
Gabriel Almeida
e420f9dd00 refactor(nodes.py): remove unused ChainFrontendNode class and its format_field method. 2023-04-09 07:00:27 -03:00
Gabriel Almeida
8c044513d2 feat(nodes.py): add ChainFrontendNode class and format_field method to handle key field display 2023-04-09 07:00:27 -03:00
Gabriel Almeida
abfea7fe8f feat: added LLMFrontendNode 2023-04-09 07:00:27 -03:00
Yoaz Menda
4bff12c80f remove unnecessary llama import 2023-04-09 06:51:17 -03:00
Yoaz Menda
ff42fce86e remove unnecessary custom llama object initialization 2023-04-09 06:51:17 -03:00
Yoaz Menda
7e39aff3ed revert local dev changes 2023-04-09 06:51:17 -03:00
Yoaz Menda
f02f0f9c98 Add support to llama as llm 2023-04-09 06:51:17 -03:00
Ibis Prevedello
cd6ef4a875 refac: fix tool bug 2023-04-08 13:49:06 -03:00
Gabriel Almeida
c5f24e7dfa fix: linting 2023-04-08 09:29:42 -03:00
Gabriel Almeida
46b2409526 fix: templates were not being processed correctly 2023-04-08 09:29:42 -03:00
Gabriel Almeida
cfd4a229ea fix: adding chainfrontendnode 2023-04-08 09:29:42 -03:00
Gabriel Almeida
db0d07f11d added comment 2023-04-08 06:54:37 -03:00
Gabriel Almeida
3fb53ca95b renamed function 2023-04-08 06:39:11 -03:00
Gabriel Almeida
6056b20b1d replaced with new memoize function 2023-04-08 06:38:08 -03:00
Gabriel Almeida
40e3ffbf50 fix: changed hash for memoization 2023-04-08 06:00:48 -03:00
Gabriel Almeida
843ef15e13 feat: added memoize to cache functions 2023-04-07 18:36:42 -03:00
Ibis Prevedello
8adf26e8de feat: add text splitter 2023-04-07 16:10:44 -03:00