neokd / NeoGPT

Chat effortlessly, execute commands, and interpret code with Llama3, Phi3, and more - your local AI assistant. Enjoy seamless interaction while ensuring ultimate privacy
https://neogpt.dev
MIT License
68 stars 62 forks source link

Add conversation loading functionality to chatbot #209

Closed ayushmorbar closed 4 months ago

ayushmorbar commented 4 months ago

This pull request adds conversation loading functionality to the chatbot. It includes a new function load_conversations() that retrieves conversation files from the neogpt/conversations directory. The --conversation flag has been added to the command line interface to enable loading conversations into the chatbot.

refer #190

NOTE: the code might not be perfect and there will be some mistakes, i might've done and so i want you to correct me- if there's!

neokd commented 4 months ago

Can you move the load_conversations from main.py to manager.py? because it should read the file and load it directly into the memory of the chain. and use rich to have a better terminal experience

ayushmorbar commented 4 months ago

okay, i am on it.

neokd commented 4 months ago

This should not be like this. The conversation_navigator should load the files from the conversation dir and should should show all the available files in the dir. If a user select a file then that file should be loaded into the history

neokd commented 4 months ago

Any updates on this? Thinking to add this feature and max budget before the v0.1.0 release

ayushmorbar commented 4 months ago

Yeah, I get it and also I guess I've confused myself on this issue, though I've made the essential changes as required… Do take a review of that, point out the wrongdoings.

neokd commented 4 months ago

You can put all the code for navigation everything into the conversation_navigator file. Stuff like navigating and loading the file etc. In manager function in manager.py you can pass a chain and load the file into the chain.

ayushmorbar commented 4 months ago

hey, i think i will pass this issue for now and will try it later, if its still live.

neokd commented 4 months ago

okayy