langsmith

api key

  • https://www.langchain.com/langsmith

login

go to setting >> api keys

๋ฐœ๊ธ‰๋ฐ›์ž.

setup .env

.env์— ์„ค์ •ํ•œ๋‹ค.

LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=your key
OPENAI_API_KEY=xxx

set on app

from dotenv import load_dotenv
load_dotenv()
from langchain_openai import ChatOpenAI

llm = ChatOpenAI()
llm.invoke("Hello3333, world!")

https://smith.langchain.com/ ์— ๊ฐ€๋ณด๋ฉด ๋กœ๊น… ๊ฒฐ๊ณผ๋ฅผ ๋ณผ์ˆ˜ ์žˆ๋‹ค.

๋‹ค์‹œ sql agent๋ฅผ ์‹คํ–‰ํ•ด๋ณด์ž.

Last updated