설치와 시작

설치와 시작

Marqo는 Docker 컨테이너 한 대로 시작할 수 있어요. 오픈소스 엔진의 기본 REST API는 http://localhost:8882에서 동작해요. 컨테이너를 띄운 뒤 헬스 체크로 상태를 확인해봐요.

docker run -p 8882:8882 marqoai/marqo:latest
curl http://localhost:8882/health

정상이면 이런 응답이 와요.

{
  "status": "green",
  "inference": {"status": "green"},
  "backend": {
    "status": "green",
    "memoryIsAvailable": true,
    "storageIsAvailable": true
  }
}

인덱스는 POST /indexes/{index_name}으로 만들어요. 구조화 안 된 데이터를 넣을 땐 typeunstructured로 지정해요.

curl -X POST "http://localhost:8882/indexes/test-index" \
  -H "Content-Type: application/json" \
  -d '{"type": "unstructured"}'

응답으로 {"acknowledged": true, "index": "test-index"}가 오면 인덱스 생성 완료예요.

더 알아보기