mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-30 19:49:09 +00:00
* add implementations of `BaseCallbackHandler` to support tracing: `SharedTracer` which is thread-safe and `Tracer` which is not and is meant to be used locally. * Tracers persist runs to locally running `langchain-server` Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
15 lines
401 B
Python
15 lines
401 B
Python
"""Script to run langchain-server locally using docker-compose."""
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
|
|
def main() -> None:
|
|
"""Run the langchain server locally."""
|
|
p = Path(__file__).absolute().parent / "docker-compose.yaml"
|
|
subprocess.run(["docker-compose", "-f", str(p), "pull"])
|
|
subprocess.run(["docker-compose", "-f", str(p), "up"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|