-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
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
Feature/chat history #715
Conversation
…owise into feature/ChatHistory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}) | ||
|
||
// 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') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
@HenryHengZJ or @chungyau97 - Can this be made available soon? I'm interesting in the sessionID piece of this |
Related:
FlowiseChatEmbed PR #27
Results:

Database
Zep Memory specify the same sessionId
QnA