Skip to content
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

Feature/chat history #715

Closed
wants to merge 19 commits into from
Closed

Feature/chat history #715

wants to merge 19 commits into from

Conversation

chungyau97
Copy link
Contributor

@chungyau97 chungyau97 commented Aug 8, 2023

Related:
FlowiseChatEmbed PR #27

Results:
Database
image

Zep Memory specify the same sessionId

Internal External
image image

QnA

Internal External
image image

@chungyau97 chungyau97 requested a review from HenryHengZJ August 16, 2023 11:31
Copy link
Contributor Author

@chungyau97 chungyau97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Results:
Add new message
image

Update message memory
image

Get all chat message via ChatFlowId and ChatId
image

prediction
image

})

// Send input message and get prediction result (Internal)
this.app.post('/api/v1/internal-prediction/:id', async (req: Request, res: Response) => {
await this.processPrediction(req, res, socketIO, true)
await this.processPrediction(req, res, socketIO, 'internal')
Copy link
Contributor

@isikhi isikhi Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and similar of this ('internal', 'external') can be enum, like ChatTypes.internal instead of hardcoding

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only feedback I can give for mr instead of code pices, here would be to get variables from an enum, or a common constant, instead of hardcoded texts. I think it will benefit in the future.

return node.data.category === 'Memory'
})

return memoryNode ? memoryNode.data.label : undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return memoryNode?.data?.label

more readable but no harm

@vijaykammili
Copy link
Contributor

@HenryHengZJ or @chungyau97 - Can this be made available soon? I'm interesting in the sessionID piece of this

@HenryHengZJ
Copy link
Contributor

closing this and moved to #1009 , also thanks @isikhi for the suggestion, using enum on the new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants