반응형 Python with AI15 AI 프롬프트 마스터하기: 생성형 모델의 잠재력 완전 해제하기 | Mastering AI Prompts: Unlocking the Full Potential of Generative Models 시행착오를 통하여 만들어낸 생성형AI 프롬프트를 공개합니다. | Sharing a generative AI prompt refined through trial and error.1. Provide clear and direct answers tailored to the question’s intent. Include concise context only when it enhances understanding and ensures relevance.2. If a topic is beyond your knowledge or scope, state 'I don't know,' but also outline general principles or suggest an approach to explore furth.. 2025. 1. 23. Mac OS M3 + Python 3.10 + Anaconda3 + LangChain + OpenAI requirements(파일 첨부함. Attaching the file for you below) 최근 생성형 AI API를 활용해 애플리케이션을 개발하려 했는데, dependency 충돌로 어려움을 겪었다.I recently attempted to develop an application using generative AI APIs but faced challenges with dependency conflicts. 특히 기존 Python 3.9 환경에서 시작했으나, 설치 과정 중 numpy의 C-extension 문제와 여러 가지 사건을 겪으면서, 시간을 절약할 수 있도록 requirements 파일을 정리해 두기로 결심했다.In particular, I started with a Python 3.9 environment but encountered issues with numpy’s C-exte.. 2025. 1. 9. Python + sqlalchemy + MariaDB | Too many connections + MariaDB Performance Tuning Open API 데이터를 크롤링해서 DB에 넣는 작업을 하는 도중에 갑자기 (pymysql.err.OperationalError) (1040, 'Too many connections') 메시지가 떴다. 몇 천 건씩 한 번에 insert 하는데 한 4~500번째쯤 되니 메시지가 뜰만도 했다.(심지어 MariaDB도 Default설정) 그래서 아래와 같이 해결. 1. sqlalchemy에 설정을 추가하였다. engine = sqlalchemy.create_engine(f'mysql+pymysql://{DB_ACCT}:{DB_SECRET}@localhost:3306/test_db', pool_size=db_pool_size, pool_recycle=db_pool_recycle, max_overflow=db_m.. 2024. 3. 27. MacOS M3 Anaconda + Tensorflow + Ta-Lib + Backtesting Setting 파이썬 환경설정은 언제나 패키지 디펜던시의 충돌을 보는 듯하기에 남겨둔다. 그냥 따라서 쭉 복붙하면 되도록... 우선 아나콘다를 설치를 한 뒤에 After Anaconda installation, conda create -n [env_name] python=3.9 conda activate [env_name] (after activate anaconda folder) conda install -c apple tensorflow-deps python -m pip install tensorflow-macos python -m pip install tensorflow-metal conda install jupyter pandas numpy matplotlib scikit-learn pip3 install ch.. 2024. 3. 5. Configure a conda virtual environment - PyCharm Error | 파이참에서 아나콘다 가상환경 가져오기 에러 If you need to use the libraries installed in Anaconda, you can add the Anaconda env to Pycharm. PyCharm에서 아나콘다 환경을 가져와서 사용할 수 있도록 되어있다. 그리고 특별히 아나콘다에 설치된 라이브러리리스트를 간편하게 사용하기 위해서 필요하기도 한다. 하지만 어느 순간부터 아래와 같이 Python Interpreter로 Conda Environment를 연결하면 Use Existing Environment에 목록은 보이지만 추가가 되지 않는 경우가 종종 발생한다. However, at some point, it often happens that when we try to connect Anaconda Environmen.. 2023. 9. 6. DataFrame.info() got an unexpected keyword argument 'null_counts' || Deprecated argument - null_counts 한 줄 요약(Long story short~!) : DataFrame.info(null_counts=True) ==> DataFrame.info(show_counts=True) Pandas를 설치한 이후로 업데이트 없이 지속적으로 사용을 하다 보니 아래와 같이 잘 사용하고 있었는데.... Since installing Pandas(The old version), I didn't update it. Pandas를 2.0.3으로 업데이트 한 뒤로는 null_counts 인자가 먹히질 않았다.. However, null_counts argument didn't work after updating Pandas. 해당 Pandas document에 들어가서 확인해 본 결과(version 1.2.0 에는 Depre.. 2023. 8. 21. 이전 1 2 3 다음 728x90 반응형