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
78 stars 65 forks source link

Conversation Navigator #190

Closed neokd closed 6 months ago

neokd commented 7 months ago

Certainly, here's a rephrased version:

  1. Generate a file named conversation_navigator.py within the utils directory.

  2. Craft a function named load_conversations within the conversation_navigator.py file. This function is designed to scan and retrieve all files present in the conversations directory.

  3. Incorporate a command-line flag, --conversations, to activate the function. The function exclusively executes when users include this flag, providing them with the capability to select and load specific chat files into the system's memory.

ayushmorbar commented 7 months ago

Can you please confirm if the load_conversations.py script is currently only retrieving a list of files in the directory? I'm also confused about the arguments for --conversations. Could you please clarify which arguments I should keep?

    parser.add_argument(
        '--conversations',
        actions = 'store_true'
      """ ... ""
        help='Load conversation files into memory'
        )
neokd commented 7 months ago

You need to create a param caled --conversations in a file called conversation_navigator.py in the utils folder. Whenever the user add the --conversations flag you need to trigger the load_conversations function. and display the existing history of chats if any. Allow user to select them