QA-Docs-Chainlit-Langchain / langsmith_config.py
GianJSX's picture
Upload 6 files
fa84b58
raw
history blame
499 Bytes
import os
def setup_langsmith_config():
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com" # Update with your API URL if using a hosted instance of Langsmith.
os.environ["LANGCHAIN_API_KEY"] = os.environ["LANGCHAIN_API_KEY"] # Update with your API key
os.environ["LANGCHAIN_TRACING_V2"] = "true"
project_name = "qa-chainlit-langchain-demo" # Update with your project name
os.environ["LANGCHAIN_PROJECT"] = project_name # Optional: "default" is used if not set