diff --git a/python/langsmith/cli/.env.example b/python/langsmith/cli/.env.example index f719a7470..03dc0ff8b 100644 --- a/python/langsmith/cli/.env.example +++ b/python/langsmith/cli/.env.example @@ -1,5 +1,5 @@ # Don't change this file. Instead, copy it to .env and change the values there. The default values will work out of the box as long as you provide your license key. -_LANGSMITH_IMAGE_VERSION=0.3.5 +_LANGSMITH_IMAGE_VERSION=0.5.0 LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key OPENAI_API_KEY=your-openai-api-key # Needed for Online Evals and Magic Query features AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0 @@ -11,10 +11,10 @@ REDIS_DATABASE_URI=redis://langchain-redis:6379 # Change to your Redis URI if us LOG_LEVEL=warning # Change to your desired log level MAX_ASYNC_JOBS_PER_WORKER=10 # Change to your desired maximum async jobs per worker. We recommend 10/suggest spinning up more replicas of the queue worker if you need more throughput ASYNCPG_POOL_MAX_SIZE=3 # Change the PG pool size based off your pg instance/requirements. -CLICKHOUSE_HOST=langchain-clickhouse -CLICKHOUSE_USER=default -CLICKHOUSE_DB=default -CLICKHOUSE_PORT=8123 -CLICKHOUSE_TLS=false -CLICKHOUSE_PASSWORD=password# Change to your Clickhouse password if needed -CLICKHOUSE_NATIVE_PORT=9000 +CLICKHOUSE_HOST=langchain-clickhouse # Change to your Clickhouse host if using external Clickhouse. Otherwise, leave it as is +CLICKHOUSE_USER=default # Change to your Clickhouse user if needed +CLICKHOUSE_DB=default # Change to your Clickhouse database if needed +CLICKHOUSE_PORT=8123 # Change to your Clickhouse port if needed +CLICKHOUSE_TLS=false # Change to true if you are using TLS to connect to Clickhouse. Otherwise, leave it as is +CLICKHOUSE_PASSWORD=password # Change to your Clickhouse password if needed +CLICKHOUSE_NATIVE_PORT=9000 # Change to your Clickhouse native port if needed diff --git a/python/langsmith/cli/docker-compose.yaml b/python/langsmith/cli/docker-compose.yaml index b2435167d..5c1df727c 100644 --- a/python/langsmith/cli/docker-compose.yaml +++ b/python/langsmith/cli/docker-compose.yaml @@ -1,11 +1,11 @@ version: "4" services: langchain-playground: - image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.5.0} ports: - 3001:3001 langchain-frontend: - image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} environment: - VITE_BACKEND_AUTH_TYPE=${AUTH_TYPE:-none} - VITE_OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID} @@ -16,7 +16,7 @@ services: - langchain-backend - langchain-playground langchain-backend: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} environment: - PORT=1984 - LANGCHAIN_ENV=local_docker @@ -49,7 +49,7 @@ services: condition: service_completed_successfully restart: always langchain-platform-backend: - image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} environment: - PORT=1986 - LANGCHAIN_ENV=local_docker @@ -75,7 +75,7 @@ services: condition: service_completed_successfully restart: always langchain-queue: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} environment: - LANGCHAIN_ENV=local_docker - LANGSMITH_LICENSE_KEY=${LANGSMITH_LICENSE_KEY} @@ -163,7 +163,7 @@ services: timeout: 2s retries: 30 clickhouse-setup: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} depends_on: langchain-clickhouse: condition: service_healthy @@ -182,7 +182,7 @@ services: "migrate -source file://clickhouse/migrations -database 'clickhouse://${CLICKHOUSE_HOST}:${CLICKHOUSE_NATIVE_PORT}?username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}&database=${CLICKHOUSE_DB}&x-multi-statement=true&x-migrations-table-engine=MergeTree' up", ] postgres-setup: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0} depends_on: langchain-db: condition: service_healthy diff --git a/python/langsmith/cli/main.py b/python/langsmith/cli/main.py index 52cee0c83..737952825 100644 --- a/python/langsmith/cli/main.py +++ b/python/langsmith/cli/main.py @@ -101,12 +101,12 @@ def _start_local(self) -> None: def pull( self, *, - version: str = "0.3.5", + version: str = "0.5.0", ) -> None: """Pull the latest LangSmith images. Args: - version: The LangSmith version to use for LangSmith. Defaults to 0.3.5 + version: The LangSmith version to use for LangSmith. Defaults to 0.5.0 """ os.environ["_LANGSMITH_IMAGE_VERSION"] = version subprocess.run( @@ -123,7 +123,7 @@ def start( *, openai_api_key: Optional[str] = None, langsmith_license_key: str, - version: str = "0.3.5", + version: str = "0.5.0", ) -> None: """Run the LangSmith server locally. @@ -251,8 +251,8 @@ def main() -> None: ) server_start_parser.add_argument( "--version", - default="0.3.5", - help="The LangSmith version to use for LangSmith. Defaults to 0.3.5.", + default="0.5.0", + help="The LangSmith version to use for LangSmith. Defaults to 0.5.0.", ) server_start_parser.set_defaults( func=lambda args: server_command.start( @@ -279,8 +279,8 @@ def main() -> None: ) server_pull_parser.add_argument( "--version", - default="0.3.5", - help="The LangSmith version to use for LangSmith. Defaults to 0.3.5.", + default="0.5.0", + help="The LangSmith version to use for LangSmith. Defaults to 0.5.0.", ) server_pull_parser.set_defaults( func=lambda args: server_command.pull(version=args.version) diff --git a/python/pyproject.toml b/python/pyproject.toml index 71b3ed0f8..a5ba8021f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.1.57" +version = "0.1.58" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain "] license = "MIT"