분류 전체보기

· 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 ..
· 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
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:
· 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 ..
· 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..
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..
· Database
CASE 1) (24.02.10) 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'You and what army?"\nI guess they\'re talking about you and me\nBaby, nobody will l\' at line 23' python dedent에서 backspace 사용 남발로 제대로 된 query가 수행되지 않아 생기는 문제,, Python 혹은 다른 언어들 대부분 들여 쓰기(indent)에 민감해 sqlparse 모듈로 query의 줄바꿈 upper case를 자동으로 ..
· Tools
Google Bard = Gemini - pro google gemini 라인업(2023.12.6)이 공개된지 벌써 2달이 넘어가지만 API며 사용자를 찾기 어렵다. 그만큼 OpenAI, Open source LLM이 사람들의 관심이 쏠려 있는데 Gemini-pro, 그것도 GPT-3 혹은 GPT-3.5에 준하는 모델이 무료 API로 사용이 가능한데 안 쓸 이유가 없다. (단, 데이터 학습 재사용 허용) 제공 API Spec. https://ai.google.dev/models/gemini?hl=ko Gemini 모델 | Google AI for Developers 이 페이지는 Cloud Translation API를 통해 번역되었습니다. 의견 보내기 Gemini 모델 컬렉션을 사용해 정리하기 내 환..
다했다
'분류 전체보기' 카테고리의 글 목록 (4 Page)