{"id":26794584,"url":"https://github.com/webup/langserve-app-demo","last_synced_at":"2025-03-29T17:28:10.795Z","repository":{"id":215627619,"uuid":"721940185","full_name":"webup/langserve-app-demo","owner":"webup","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-05T13:57:14.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-05T14:46:01.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-22T05:08:43.000Z","updated_at":"2024-01-05T14:46:09.357Z","dependencies_parsed_at":"2024-01-05T14:46:08.246Z","dependency_job_id":"82647870-0ecd-42ea-9a8f-ef65c0815430","html_url":"https://github.com/webup/langserve-app-demo","commit_stats":null,"previous_names":["webup/langserve-app-demo"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webup%2Flangserve-app-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webup%2Flangserve-app-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webup%2Flangserve-app-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webup%2Flangserve-app-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webup","download_url":"https://codeload.github.com/webup/langserve-app-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246218408,"owners_count":20742372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T17:28:10.302Z","updated_at":"2025-03-29T17:28:10.790Z","avatar_url":"https://github.com/webup.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# langserve-app-demo\n\n## Installation\n\nInstall the LangChain CLI if you haven't yet\n\n```bash\npip install -U langchain-cli\n```\n\n## Adding packages\n\n```bash\n# adding packages from \n# https://github.com/langchain-ai/langchain/tree/master/templates\nlangchain app add $PROJECT_NAME\n\n# adding custom GitHub repo packages\nlangchain app add --repo $OWNER/$REPO\n# or with whole git string (supports other git providers):\n# langchain app add git+https://github.com/hwchase17/chain-of-verification\n\n# with a custom api mount point (defaults to `/{package_name}`)\nlangchain app add $PROJECT_NAME --api_path=/my/custom/path/rag\n```\n\nNote: you remove packages by their api path\n\n```bash\nlangchain app remove my/custom/path/rag\n```\n\n## Setup LangSmith (Optional)\nLangSmith will help us trace, monitor and debug LangChain applications. \nLangSmith is currently in private beta, you can sign up [here](https://smith.langchain.com/). \nIf you don't have access, you can skip this section\n\n\n```shell\nexport LANGCHAIN_TRACING_V2=true\nexport LANGCHAIN_API_KEY=\u003cyour-api-key\u003e\nexport LANGCHAIN_PROJECT=\u003cyour-project\u003e  # if not specified, defaults to \"default\"\n```\n\n## Launch LangServe\n\n```bash\nlangchain serve\n```\n\n## Running in Docker\n\nThis project folder includes a Dockerfile that allows you to easily build and host your LangServe app.\n\n### Building the Image\n\nTo build the image, you simply:\n\n```shell\ndocker build . -t my-langserve-app\n```\n\nIf you tag your image with something other than `my-langserve-app`,\nnote it for use in the next step.\n\n### Running the Image Locally\n\nTo run the image, you'll need to include any environment variables\nnecessary for your application.\n\nIn the below example, we inject the `OPENAI_API_KEY` environment\nvariable with the value set in my local environment\n(`$OPENAI_API_KEY`)\n\nWe also expose port 8080 with the `-p 8080:8080` option.\n\n```shell\ndocker run -e OPENAI_API_KEY=$OPENAI_API_KEY -p 8080:8080 my-langserve-app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebup%2Flangserve-app-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebup%2Flangserve-app-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebup%2Flangserve-app-demo/lists"}