[Github] Github PR(pull request) template ๋งŒ๋“ค์–ด ์ฃผ๋Š” ์‚ฌ์ดํŠธ
ยท
๐Ÿ› ๏ธ Tools
https://pullpo.io/pr-template-builder [https://pullpo.io/pr-template-builder pullpo.io](https://pullpo.io/pr-template-builder) ๐Ÿ“ Jira ticket Tip: Install Jira-GitHub integration Task 123 ๐Ÿ“ Description Please include a summary of the changes. Principal change 1 - Did this and this. Principal change 2 - Did this and this. Principal change 3 - Did this and this. ๐Ÿงช Testing Please describe the tests ..
[Gemini] github action์—์„œ gemini api ์‚ฌ์šฉ์‹œ _CLOUD_SDK_MISSING_CREDENTIALS Auth Error
ยท
๐Ÿ› ๏ธ Tools
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS) google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information. ์ธ์ฆ๋˜์ง€ ์•Š์€ IP์—์„œ ๊ตฌ๊ธ€ API(google-generativeai)๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ ๋‘๊ฐ€์ง€ ๋ฌธ์ œ๋กœ ์ด Error๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ์ฒซ๋ฒˆ์งธ google-auth์˜ ๋ฒ„์ „์ด ๋‚ฎ์•„ ..
[Python] f-string trick (1)
ยท
๐Ÿ Python
Python f-string์„ ํ™œ์šฉํ•œ ๊น”๋”ํ•œ ์ถœ๋ ฅ 1) int ๋ฌธ์ž์—ด ์ถœ๋ ฅ f-string์œผ๋กœ ์ˆซ์ž๋ฅผ ๊ฐ€๋…์„ฑ์ด ์ข‹์€ ํ˜•ํƒœ๋กœ ๊ตฌ๋ถ„์ž ์„ ํƒ์„ ํ•  ์ˆ˜ ์žˆ๋‹ค. n : int = 1000000 print(f"{n}") # 1000000 print(f"{n:_}") # 1_000_000 print(f"{n:,}") # 1,000,000 2) ๋ฌธ์ž์—ด ์ถœ๋ ฅ blank space ์ฑ„์šฐ๊ธฐ ํŠน์ • ํ•ญ๋ชฉ์„ ์ถœ๋ ฅํ•  ๋•Œ ๋ฌธ์ž์—ด์˜ ๊ธธ์ด๊ฐ€ ๋‹ฌ๋ผ ๋ณด๊ธฐํž˜๋“  ๊ฒฝ์šฐ ์ผ์ผํžˆ ๋ฌธ์ž์—ด์˜ ํฌ๊ธฐ๋งŒํผ ๋นˆ์นธ์„ ์‚ฌ์šฉํ•ด์•ผํ•œ๋‹ค. ์ด ๊ฒฝ์šฐ f-string์œผ๋กœ ๋ณด์ •ํ•  ์ˆ˜์žˆ๋‹ค. type1 : str = 'color' type2 : str = 'size' print(f"{type1:
[NotesOllama] Mac Default Memo Application + OpenLLM(Custom)
ยท
๐Ÿ› ๏ธ Tools
NotesOllama๋กœ Mac ๋ฉ”๋ชจ์žฅ์—์„œ ์ž๋™ ํ•œ๊ธ€ ๋ฒˆ์—ญ์„ ์‚ฌ์šฉํ•ด๋ณด์ž! NotesOllama๋Š” ๋ฉ”๋ชจ์žฅ์—์„œ OpenLLM ๊ตฌ๋™ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” Application์ด๋‹ค. Obsidia Ollama์—์„œ ์˜๊ฐ์„ ๋ฐ›์•„ ๋งŒ๋“ค์—ˆ๋‹ค๊ณ  ํ•œ๋‹ค. Good~ ์‚ฌ์šฉ ์š”๊ตฌ์‚ฌํ•ญ์€ Ollama๊ฐ€ ๊ตฌ๋™ ๋˜์–ด์•ผํ•œ๋‹ค. ๊ฐ์„ค ์ œ์™ธ~ ํ•˜๊ณ  ๋ฐ”๋กœ Go~ 1) Ollama ์„ค์น˜ https://ollama.com/download Download Ollama on macOS Download Ollama on macOS ollama.com 2) NotesOllama ์„ค์น˜ https://smallest.app/notesollama/ NotesOllama NotesCmdr Slash commands, markdown and templates for ..
[UNION ALL] Colum Row ๋ณ‘ํ•ฉ
ยท
๐Ÿ›ข๏ธ Database
SELECT * FROM (SELECT colA, colB FROM tableA UNION SELECT colA, colB FROM tableB) WHERE colA > 1 https://stackoverflow.com/questions/5437507/union-with-where-clause UNION with WHERE clause I'm doing a UNION of two queries on an Oracle database. Both of them have a WHERE clause. Is there a difference in the performance if I do the WHERE after UNIONing the queries compared to performin... stackove..
[Gemini] ValueError: The `response.parts` quick accessor only works for a single candidate, but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked.
ยท
๐Ÿ—ฃ๏ธ Natural Language Processing
ValueError: The `response.parts` quick accessor only works for a single candidate, but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked. ์›์ธ : ์ž˜๋ชป๋œ request๋กœ prompt ์‘๋‹ต์ด ์ฐจ๋‹จ๋œ case ํ˜น์€ safety setting error request ๋ณด๋‚ด๊ธฐ ์ „์— parameter๋ฅผ ๋‹ค ๊ธฐ์ž…ํ•ด์ค€๋‹ค. ํ˜„์žฌ๋กœ์„œ๋Š” max_tokens candidate_count : ์ถœ๋ ฅ ์ˆ˜ top_p : log_probabilities๋“ค์˜ argmax ๊ฐ’์„ ์—ญ์ˆœ์œผ๋กœ ์ •๋ ฌํ•œ๋’ค ๋‹จ์–ด ๋‹จ์œ„๋กœ ์žฌ๊ตฌ์„ฑ (๊ธ€๋ €๋‹ค_argmax : 0.7, ํž˜๋“ค๋‹ค_a..
๋‹คํ–ˆ๋‹ค
B's