🐛 fix(nodes.py): remove deepcopying of certain objects to improve performance 🐛 fix(loading.py): add error handling for empty documents in instantiate_textsplitter The is_first_message logic in chat_manager.py was not correctly identifying the first message. The fix in this commit changes the comparison to <= 1 instead of == 0. In nodes.py, deepcopying of certain objects was removed to improve performance. This was done because deepcopying was not necessary for these objects. In loading.py, error handling was added to handle empty documents in instantiate_textsplitter. This was done to prevent errors when the source provided did not load correctly or was empty. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||