라벨이 BlockChain인 게시물 표시

MYSQL에서 제공하는 Vector Data 처리기능

이미지
  MYSQL에서 제공하는 Vector Data 처리기능 MySQL은 벡터 데이터 처리 기능을 내장하여 AI 기반 애플리케이션 개발을 지원합니다. 아래는 주요 기능과 사용 예시, 기존 벡터 DB 대비 장점을 정리한 내용입니다.     MySQL의 Vector DB 기능 1. 벡터 데이터 타입 지원 VECTOR(n) : n차원 벡터 저장 가능 (예: VECTOR(768) )[2][5]. 저장 방식 : VARBINARY 또는 리스트 형식 문자열로 4바이트 부동소수점 저장[2]. 크기 제한 : 2048~16383 차원 지원 (기본값 2048)[2].   2. 벡터 변환 함수 STRING_TO_VECTOR() : 문자열을 벡터로 변환 (예: '[1][2][3]' → 이진값)[2][5]. VECTOR_TO_STRING() : 이진 벡터를 문자열로 출력[2]. VECTOR_DIM() : 벡터의 차원 수 계산[2].   3. 유사도 계산 DISTANCE() : 코사인/유클리드/내적 유사도 계산 지원[2]. SELECT DISTANCE(embedding, '[1,2,3]' , 'COSINE' ) FROM books;     4. 벡터 연산 통합 표준 SQL 구문 : INSERT , UPDATE , JOIN 등 기존 SQL 문법과 호환[2][5]. 예시 테이블 생성 : CREATE TABLE books ( id INT PRIMARY KEY, title VARCHAR ( 60 ), embedding VECTOR( 768 ) USING VARBINARY );     사용 예시 1. 벡터 데이터 삽입 INSERT INTO books (title, embedding) VALUES ( 'AI 입문서' , STRING_TO_VECTOR( '[0.1,0.4,0.7]' ));   2. 유사도 검색 ...

(truffle 환경 설정) 스마트 계약 배포 와 truffle deploy 오류 해결 - Error: Could not find artifacts for SimpleStorage from any sources

이미지
  (truffle 환경 설정) 스마트 계약 배포 와 truffle deploy 오류 해결 - Error: Could not find artifacts for SimpleStorage from any sources   간단한 오류의 원인은 truffle  환경의 contracts 소스의 위치를  확인하여야 하는 경우 입니다. 처음 truffle을 사용하다보니 환경 설정의 묵시적인 설정을 잘 이해하지 못한 경우 발생하는 오류 입니다. Truffle 설치 와 스마트 계약(Smart Contract) 개발 1. Truffle 설치 - 스마트 계약 개발 환경 구성 (truffle, ganache-cli, solc )     - npm install -g truffle     - npm install -g ganache-cli     - npm install -g solc 2.  Truffle 사용 - 스마트 계약(Smart Contract)개발    - truffle create contract YourContractName    - truffle create test YourTestName  3. [Truffle 환경 설정] 컴파일 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations:      - Are you connected to the internet? 4.  [Truffle 환경 설정] Deploy 오류 대처 - Error: Could not find artifacts for SimpleStorage from any sources   - throw new Error("Could not find artifacts for " + im...

(truffle 환경 설정) Truffle compiler 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations

이미지
(truffle 환경 설정) Truffle compiler 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations   Truffle 을 사용하는 환경이 인터넷 사용이 안되거나  HTTPS와 같은 프로토콜이 차단된 환경에서 발생하는 문제입니다. 특히  금융 환경처럼 망분리가 되어 있는 환경은 https를  강제로  http로 변환해서 통신하는 데이터를 감시하고 있습니다. 그래서 https로 작동되는 외부 소스다운로드의 경우 오류가 발생  합니다. 이러한 경우 인터넷에 검색해도 나오지 않는 오류 해결 방법이 있어서 공유 합니다.  (  한참 이리저리  찾아 헤메다가  ㅠㅠ) Truffle 설치 와 스마트 계약(Smart Contract) 개발 1. Truffle 설치 - 스마트 계약 개발 환경 구성 (truffle, ganache-cli, solc )     - npm install -g truffle     - npm install -g ganache-cli     - npm install -g solc 2.  Truffle 사용 - 스마트 계약(Smart Contract)개발    - truffle create contract YourContractName    - truffle create test YourTestName  3. [Truffle 환경 설정] 컴파일 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations:      - Are you connected to the internet? 4. ...

블록체인 개발자를 위한 Truffle 사용법 - 스마트 계약(Smart Contract)개발

이미지
  블록체인 개발자를 위한 Truffle 사용법 - 스마트 계약(Smart Contract)개발   Truffle 설치 와 스마트 계약(Smart Contract) 개발 1. Truffle 설치 - 스마트 계약 개발 환경 구성 (truffle, ganache-cli, solc )     - npm install -g truffle     - npm install -g ganache-cli     - npm install -g solc 2.  Truffle 사용 - 스마트 계약(Smart Contract)개발    - truffle create contract YourContractName    - truffle create test YourTestName  3. [Truffle 환경 설정] 컴파일 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations:      - Are you connected to the internet? 4.  [Truffle 환경 설정] Deploy 오류 대처 - Error: Could not find artifacts for SimpleStorage from any sources   - throw new Error("Could not find artifacts for " + import_path + " from any sources");   ㅁ Truffle 명령을 이용한 스마트 계약 개발 # Truffle을 이용하여 스마트 컨트렉트를 이용하는 명령은 다음과 같습니다. $ ganache-cli  -h 0.0.0.0 -p 8545 ...

이 블로그의 인기 게시물

[좋은글] 나침반의 바늘이 흔들리는 한 그 나침반은 틀리는 일이 없다 - 신영복

( 경영전략,사업전략 ) 마이클 포터의 가치사슬 분석(Value Chain Analysis) 이론

[Ubuntu]Linux Tunning -네트워크 커널 매개 변수 최적화