keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
348 stars 138 forks source link

Do we have any way to load only specific aiml files ? After starting the client. #267

Closed SunilGudivada closed 3 years ago

SunilGudivada commented 4 years ago

I want to load the specific AIML file instead of reloading all the AIML files.

keiffster commented 4 years ago

Yes change dirs config option to file and give a file path to the aiml instead of a directory

So change

categories: dirs: path/to/aiml-files

To

categories: file: path/to/single/aiml-file

SunilGudivada commented 4 years ago

What if the settings are SQL.

Can you please tell me how it works in case of SQL.

If i dynamically feed the content in the SQL tables. Will it automatically take the content without restarting the client service?

keiffster commented 4 years ago

No that’s not possible at the moment, if you want to work with individual files use file mode

Or use sql for all but aiml and use file just for the aiml file

Regards

Keith 07771 597630

On 26 Jun 2020, at 16:24, Sunil Gudivada notifications@github.com wrote:

 What if the settings are SQL.

Can you please tell me how it works in case of SQL.

If dynamically feed the content in the SQL tables. Will it automatically take the content without restarting the client service?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

SunilGudivada commented 4 years ago

Is there a way to reload the brain ?

I am creating the aiml files in the storage folder, and reloading the files in the database using

Uploader.upload('categories', AIML_DATABASE_URI, None, 'storage/categories', True, '.aiml', True, False, True)

Do we have any way to reload the brain without restarting the client ?

keiffster commented 4 years ago

Yes, take a look at the admin aiml in y-bot there are aiml commands to reload all data elements