diff --git a/AI/langchain/1.0/22.03-lts-sp4/Dockerfile b/AI/langchain/1.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..14df5d9bdc652b38542a6c5cb8efb97d265b6624 --- /dev/null +++ b/AI/langchain/1.0/22.03-lts-sp4/Dockerfile @@ -0,0 +1,8 @@ +FROM openeuler/openeuler:22.03-lts-sp4 + +LABEL author="yjh" description="langchain" + +RUN dnf install -y python3-pip + +RUN pip install --no-cache-dir langchain[all] \ + -i https://mirrors.aliyun.com/pypi/simple/ diff --git a/AI/langchain/README.md b/AI/langchain/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e2eb6904a537cad393fbff6bb7b1fe1ab393756d --- /dev/null +++ b/AI/langchain/README.md @@ -0,0 +1,29 @@ +# Quick reference + +- The official LangChain(Deep Learning Recommendation Model) docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# Dotnet-aspnet(ASP.NET Core) | openEuler +Current LangChain(Deep Learning Recommendation Model) docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +# Supported tags and respective Dockerfile links +- langchain 1.0 on openEuler 22.03-LTS-SP4 | amd64, arm64 | + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/langchain:$TAG" --platform linux/amd64,linux/arm64 . --push +``` + +2. Run: +```shell +docker run -itd --name langchain openeuler/langchain:$TAG +docker exec -it langchain /bin/bash +``` + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). diff --git a/AI/langchain/doc/image-info.yml b/AI/langchain/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..4a626498929ebe3be31dd5a8f7c31463b024ef33 --- /dev/null +++ b/AI/langchain/doc/image-info.yml @@ -0,0 +1,50 @@ +name: langchain +category: ai +description: LangChain is an open-source programming framework based on Large Language Models (LLMs), aimed at simplifying and accelerating the development of LLM based applications. +show-on-appstore: false +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + langchain镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[1.0-oe2203sp4](https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/langchain/1.0/22.03-lts-sp4/Dockerfile)| langchain 1.0 on openEuler 22.03-LTS-SP4 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/langchain:{Tag} + ``` + +usage: | + - 启动容器 + ``` + docker run -itd --name langchain openeuler/langchain:{Tag} + ``` + 用户可根据自身需求选择对应版本的{Tag}、容器启动的选项。`langchain`启动之后,通过`docker exec -it langchain /bin/bash`进入容器的/目录,就可以验证langchain正常使用。 + + + - 容器测试 + + 查看运行日志 + ``` + docker logs -f langchain + ``` + + 使用shell交互 + ``` + docker exec -it langchain /bin/bash + ``` + +license: MIT license +similar_packages: + - langchain-core: 包含必要工具(如文本拆分、基础工具调用) + - langchain-community: 提供预构建的组件,开箱即用 +dependency: + - python3 + - python3-pip + - langchain-community diff --git a/AI/langchain/meta.yml b/AI/langchain/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..addcdc1898c1287bccba065d271196609f3c9c19 --- /dev/null +++ b/AI/langchain/meta.yml @@ -0,0 +1,2 @@ +1.0-oe2203sp4: + path: 1.0/22.03-lts-sp4/Dockerfile