mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-16 09:04:27 -04:00
a673a51efa
- Migrate from deprecated langchainplus_sdk to `langsmith` package - Update the `run_on_dataset()` API to use an eval config - Update a number of evaluators, as well as the loading logic - Update docstrings / reference docs - Update tracer to share single HTTP session
19 lines
533 B
Python
19 lines
533 B
Python
"""Script to run langchain-server locally using docker-compose."""
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
from langsmith.cli.main import get_docker_compose_command
|
|
|
|
|
|
def main() -> None:
|
|
"""Run the langchain server locally."""
|
|
p = Path(__file__).absolute().parent / "docker-compose.yaml"
|
|
|
|
docker_compose_command = get_docker_compose_command()
|
|
subprocess.run([*docker_compose_command, "-f", str(p), "pull"])
|
|
subprocess.run([*docker_compose_command, "-f", str(p), "up"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|