Commit graph

30 commits

Author SHA1 Message Date
Edwin Jose
fe88378d05 Update chat_service.py 2025-09-10 12:41:04 -04:00
cristhianzl
9fb24ab369 🔧 (chat_service.py): remove redundant code block that adds local metadata to conversations array
♻️ (chat_service.py): refactor code to remove unnecessary loop for adding local metadata to conversations array
2025-09-09 14:22:47 -03:00
phact
f3616db4cd FLOW_ID 2025-09-08 16:33:06 -04:00
Sebastián Estévez
084502c0b6
Merge branch 'main' into ingestion-flow 2025-09-08 16:29:13 -04:00
Lucas Oliveira
d6bf6444e5 Merge remote-tracking branch 'origin/main' into feat/nudges 2025-09-08 16:25:59 -03:00
Gabriel Luiz Freitas Almeida
e144f8f0ef update FLOW_ID variable 2025-09-08 15:10:00 -03:00
Gabriel Luiz Freitas Almeida
503fa92788
Merge branch 'main' into ingestion-flow 2025-09-08 12:19:52 -03:00
cristhianzl
68652dd298 📝 (agent.py): Update comments and function names for clarity and consistency
🔧 (agent.py): Add support for in-memory storage of active conversation threads
🔧 (agent.py): Implement storing conversation metadata in memory and persisting to disk
🔧 (chat_service.py): Refactor get_chat_history method to handle in-memory and persistent conversations
🔧 (chat_service.py): Enhance get_chat_history to process in-memory and persistent conversations
🔧 (chat_service.py): Improve handling of in-memory and Langflow database conversations
🔧 (chat_service.py): Refactor get_user_conversation method for better handling of in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Update get_user_conversation to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Update get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Enhance get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Refactor get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat_service.py): Improve get_user_conversation method to handle in-memory and metadata-only conversations
🔧 (chat
2025-09-05 18:15:51 -03:00
cristhianzl
f83851b259 (frontend): refactor message processing in ChatPage component to handle function calls from chunks or response_data
♻️ (agent.py): refactor async_response, async_langflow, async_chat, async_langflow_chat, and async_langflow_chat_stream functions to return full response object for function calls
🔧 (chat_service.py): update ChatService to include function call data in message_data if present
2025-09-05 16:53:02 -03:00
cristhianzl
7ff3bfd70b merge fix 2025-09-05 16:04:14 -03:00
cristhianzl
18b4059b56 🔧 (agent.py): Import and use conversation_persistence_service to handle user conversations storage and retrieval
🔧 (conversation_persistence_service.py): Create a service to persist chat conversations to disk for server restarts
2025-09-05 16:03:06 -03:00
Gabriel Luiz Freitas Almeida
531ff8b6ac Merge branch 'main' into ingestion-flow 2025-09-05 10:26:38 -03:00
phact
d198ffa706 logging & format 2025-09-04 20:56:47 -04:00
Lucas Oliveira
aad89b9166 Add nudges service into backend 2025-09-04 18:15:46 -03:00
Gabriel Luiz Freitas Almeida
c4185bb33f Merge branch 'main' into ingestion-flow 2025-09-04 17:59:43 -03:00
cristhianzl
6dcb65debd 📝 (frontend): Add new function 'refreshConversationsSilent' to update data without loading states
🚀 (frontend): Implement support for process.env.PORT to run app on a configurable port
🔧 (frontend): Change port variable case from lowercase 'port' to uppercase 'PORT' for better semantics
📝 (frontend): Add comments to clarify the purpose of loading conversation data only when user explicitly selects a conversation
📝 (frontend): Add comments to explain the logic for loading conversation data based on certain conditions
📝 (frontend): Add comments to describe the purpose of handling new conversation creation and resetting messages
📝 (frontend): Add comments to explain the logic for loading conversation data when conversationData changes
📝 (frontend): Add comments to clarify the purpose of loading conversations from the backend
📝 (frontend): Add comments to describe the logic for silent refresh to update data without loading states
📝 (frontend): Add comments to explain the purpose of starting a new conversation and creating a placeholder conversation
📝 (frontend): Add comments to clarify the logic for forking from a response and starting a new conversation
📝 (frontend): Add comments to describe the purpose of adding a conversation document and clearing conversation documents
📝 (frontend): Add comments to explain the logic for using a timeout to debounce multiple rapid refresh calls
📝 (frontend): Add comments to clarify the purpose of cleaning up timeout on unmount
📝 (frontend): Add comments to describe the logic for handling new conversation creation and resetting state
📝 (frontend): Add comments to explain the logic for forking from a response and starting a new conversation
📝 (frontend): Add comments to clarify the purpose of using useMemo for optimizing performance in ChatProvider
📝 (frontend): Add comments to describe the logic for using useMemo in the ChatProvider component
📝 (frontend): Add comments to explain the purpose of the useChat custom hook
📝 (frontend): Add comments to clarify the error message when useChat is not used within a ChatProvider
📝 (services): Update ChatService to fetch Langflow history with flow_id parameter for better control
2025-09-04 15:36:41 -03:00
Gabriel Luiz Freitas Almeida
d77ebb5f37 update FLOW_ID to LANGFLOW_CHAT_FLOW_ID 2025-09-04 10:23:34 -03:00
cristhianzl
a18e3d25dd merge fix 2025-09-03 17:44:18 -03:00
cristhianzl
0cd0297247 (agent.py): Add functionality to claim session ownership for Google users in async_langflow_chat and async_langflow_chat_stream functions
🔧 (chat_service.py): Refactor conversation deduplication logic and source statistics calculation for better performance and accuracy
🔧 (langflow_history_service.py): Implement session ownership filtering for Google users and enhance session ownership tracking functionality
🔧 (session_ownership_service.py): Create SessionOwnershipService to track session ownership for proper message history separation
2025-09-03 17:42:28 -03:00
phact
a52a842df9 centralized logging 2025-09-03 15:57:35 -04:00
cristhianzl
aa630edbb0 merge fix 2025-09-03 10:46:20 -03:00
cristhianzl
9528e2f185 add chat history 2025-09-03 10:34:45 -03:00
phact
9074bda6ed ruff 2025-09-03 09:17:30 -04:00
phact
859458efdf LANGFLOW_URL 2025-08-27 23:09:11 -04:00
phact
be61909bed in memory chat history and WIP conversation forking 2025-08-22 03:04:46 -04:00
phact
346b938d98 refactor to openrag and knowledge filters 2025-08-13 16:31:35 -04:00
phact
ef00cc720b flow to support passing filters 2025-08-12 16:30:41 -04:00
phact
7ab8433aa8 changes to support jwt through langflow 2025-08-12 00:30:32 -04:00
phact
f8a583a982 context variable fix for agentd 2025-08-11 21:57:05 -04:00
phact
c9182184cf refactor 2025-07-30 11:18:19 -04:00