-
Notifications
You must be signed in to change notification settings - Fork 12
Feature/11 prompt config #56
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
Conversation
…mpt-최적화-제안' into feature/11-prompt-config
…nferenceLab/Lang2SQL into feature/11-prompt-config
prompt/template_loader.py
Outdated
|
|
||
| def get_prompt_template(prompt_name: str) -> str: | ||
| try: | ||
| with open(os.path.join(os.path.dirname(__file__), f"{prompt_name}.md"), "r", encoding="utf-8") as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❗제 환경에서는 에러가 나네요...ㅜㅜ
raise FileNotFoundError(f"경고: '{prompt_name}.md' 파일을 찾을 수 없습니다.")
디버깅
ls -ltra /home/pseudo.dwlee038/miniconda3/lib/python3.12/site-packages/prompt/
-rw-rw-r-- 1 pseudo.dwlee038 pseudo.dwlee038 790 Apr 21 10:31 template_loader.py
-rw-rw-r-- 1 pseudo.dwlee038 pseudo.dwlee038 0 Apr 21 10:31 __init__.py
drwxrwxr-x 2 pseudo.dwlee038 pseudo.dwlee038 4096 Apr 21 10:31 __pycache__
drwxrwxr-x 3 pseudo.dwlee038 pseudo.dwlee038 4096 Apr 21 10:31 .
drwxrwxr-x 437 pseudo.dwlee038 pseudo.dwlee038 20480 Apr 21 10:31 ..
- 왜 md파일은 안생기는걸까요!?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 해당 코드를 받으신 이후 pip install . 을 해보셨을까요?
아니면, pip install -e .을 해서 새로 build가 필요할 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 pip install -e . 로 진행하니 됩니다!
|
👍 |
#️⃣ Issue Number
📝 요약(Summary)
💬 To Reviewers (선택)
PR Checklist
reference) How to Code Review