Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intent Regarding the Presence of "__init__.py" #91

Open
VAN613 opened this issue Sep 5, 2024 · 1 comment
Open

Intent Regarding the Presence of "__init__.py" #91

VAN613 opened this issue Sep 5, 2024 · 1 comment

Comments

@VAN613
Copy link

VAN613 commented Sep 5, 2024

I apologize for the basic question.

Case 1:
For example, the following directory contains an init.py file despite the absence of any .py files:
gpt-rag-orchestrator/orc/plugins/
gpt-rag-orchestrator/orc/plugins/ResponsibleAI/Semantic/Fairness/

Case 2:
On the other hand, the following directory contains .py files but lacks an init.py file:
gpt-rag-orchestrator/orc/plugins/Retrieval

Is there no clear intention behind these cases, and could it simply be that case 1 was forgotten to be deleted and case 2 was forgotten to be added? Or is there some underlying intention?

@VAN613
Copy link
Author

VAN613 commented Sep 9, 2024

It has been found that the following code exists in 'shared/util.py'.

def load_sk_plugin(name, oai_config):
kernel = sk.Kernel()
kernel.add_chat_service("chat_completion", AzureChatCompletion(oai_config['deployment'], oai_config['endpoint'], oai_config['api_key'], ad_auth=True))
plugin = kernel.import_semantic_skill_from_directory("orc/plugins", name)
native_functions = kernel.import_native_skill_from_directory("orc/plugins", name)
plugin.update(native_functions)
return plugin

Therefore, it is understood that an 'init.py' file is necessary for 'gpt-rag-orchestrator/orc/plugins/' mentioned in Case 1."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant