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 60 forks source link

Load Config for NeoGPT #112

Closed neokd closed 5 months ago

neokd commented 7 months ago

Description: To enhance user experience, we need to implement a configuration loading function for NeoGPT. This function will read a YAML configuration file, parse its contents, and set up NeoGPT based on the stored configuration details.

Load Config for NeoGPT

  1. Define a function load_config() to handle the loading process.
  2. Read the YAML file containing the configuration details.
  3. Parse the YAML content to retrieve the configuration parameters.
  4. Set up NeoGPT with the loaded configuration, ensuring proper initialization.
bryce-seefieldt commented 7 months ago

Can you provide further details on what specifc config details should be included in the YAML file?
At what stage in the setup/build process would the user be utilizing the config option? Is it a method of running the program once the DB has already been built? Would like to tackle this if you can elaborate on the details. Thanks, Bryce

neokd commented 7 months ago

@bryce-seefieldt the YAML would include

  1. Capture NeoGPT-related details such as version, environment, persona, UI settings, model type, and export date.
  2. Include model-specific information like model name, file, and embedding model.
  3. Capture database details, including the parent directory.
  4. Include directory information, such as the source directory and workspace directory.
  5. Capture memory configurations, including the default memory key.

As mentioned in #111 . You can allow users to have multiple configs allowing them to customise based on their needs.

bryce-seefieldt commented 7 months ago

OK thanks, can I work on this ?

neokd commented 7 months ago

You can work on this. These config are just for NeoGPT main file and not for builder.Re running the building may or may not be required

Tanishka2712 commented 6 months ago

Hello! I want to enquire whether this issue is still around and can I start working on this under kwoc?

bryce-seefieldt commented 6 months ago

I am almost ready to submit a PR for this issue.

On Fri, Jan 5, 2024 at 6:20 AM Tanishka2712 @.***> wrote:

Hello! I want to enquire whether this issue is still around and can I start working on this under kwoc?

— Reply to this email directly, view it on GitHub https://github.com/neokd/NeoGPT/issues/112#issuecomment-1878511266, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6JISL2G3ZY23JVKJSPRSHLYM7OYPAVCNFSM6AAAAABAJMOGJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGUYTCMRWGY . You are receiving this because you were mentioned.Message ID: @.***>

neokd commented 6 months ago

Hello! I want to enquire whether this issue is still around and can I start working on this under kwoc?

The issue is already in progress by @bryce-seefieldt

Tanishka2712 commented 6 months ago

okayy!

On Fri, Jan 5, 2024 at 5:12 PM Bryce Seefieldt @.***> wrote:

I am almost ready to submit a PR for this issue.

On Fri, Jan 5, 2024 at 6:20 AM Tanishka2712 @.***> wrote:

Hello! I want to enquire whether this issue is still around and can I start working on this under kwoc?

— Reply to this email directly, view it on GitHub https://github.com/neokd/NeoGPT/issues/112#issuecomment-1878511266, or unsubscribe < https://github.com/notifications/unsubscribe-auth/A6JISL2G3ZY23JVKJSPRSHLYM7OYPAVCNFSM6AAAAABAJMOGJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGUYTCMRWGY>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/neokd/NeoGPT/issues/112#issuecomment-1878537188, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YWFJAFVWVVJFDGNYD3WWLYM7RKVAVCNFSM6AAAAABAJMOGJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGUZTOMJYHA . You are receiving this because you commented.Message ID: @.***>

bryce-seefieldt commented 5 months ago

PR 123 includes some updates to both import and export config functions.

neokd commented 5 months ago

Closing this issue for now