Conversation
…mpt-최적화-제안' into feature/11-prompt-config
…nferenceLab/Lang2SQL into feature/11-prompt-config
ehddnr301
reviewed
Apr 21, 2025
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: |
Collaborator
There was a problem hiding this comment.
❗제 환경에서는 에러가 나네요...ㅜㅜ
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파일은 안생기는걸까요!?
Contributor
Author
There was a problem hiding this comment.
혹시 해당 코드를 받으신 이후 pip install . 을 해보셨을까요?
아니면, pip install -e .을 해서 새로 build가 필요할 것 같습니다.
Collaborator
There was a problem hiding this comment.
👍 pip install -e . 로 진행하니 됩니다!
ehddnr301
approved these changes
Apr 21, 2025
Contributor
|
👍 |
DShomin
approved these changes
Apr 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ Issue Number
📝 요약(Summary)
💬 To Reviewers (선택)
PR Checklist
reference) How to Code Review