Closed ayushmorbar closed 3 months ago
This functionality allows to search entire history or current chat hisotry?
The provided code searches the entire chat history. It iterates over all messages stored in chain.combine_documents_chain.memory.chat_memory.messages
, which presumably holds all messages from the start of the chat to the current moment.
Great. Futher we can extend this to search the entire chat history.
Well, It already does that.
Sorry!! Missed the PR, Thanks for the contribution.
Sorry!! Missed the PR, Thanks for the contribution.
Haha, no issues.
This pull request adds a new feature to the magic_commands.py file, allowing users to search the chat history for a specific keyword. The search functionality is implemented using the "/search [keyword]" command. When the command is executed, the chat history is scanned for messages containing the keyword, and the matching messages are displayed. If no messages are found, a corresponding message is printed. This feature enhances the usability of the chat application by providing users with a convenient way to search for specific content within the chat history.
Refer https://github.com/neokd/NeoGPT/issues/210