이 노트북은 dataherald 컴포넌트를 사용하는 방법을 다룹니다. 먼저, Dataherald 계정을 설정하고 API KEY를 받아야 합니다:
  1. dataherald로 이동하여 여기에서 가입하세요
  2. Admin Console에 로그인한 후, API KEY를 생성하세요
  3. pip install dataherald
그런 다음 몇 가지 환경 변수를 설정해야 합니다:
  1. API KEY를 DATAHERALD_API_KEY 환경 변수에 저장하세요
pip install dataherald
pip install -qU langchain-community
import os

os.environ["DATAHERALD_API_KEY"] = ""
from langchain_community.utilities.dataherald import DataheraldAPIWrapper
dataherald = DataheraldAPIWrapper(db_connection_id="65fb766367dd22c99ce1a12d")
dataherald.run("How many employees are in the company?")
'select COUNT(*) from employees'

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I