{"id":20975136,"url":"https://github.com/timesurgelabs/langchain-task-template","last_synced_at":"2026-04-21T21:01:41.665Z","repository":{"id":222408343,"uuid":"757201043","full_name":"TimeSurgeLabs/langchain-task-template","owner":"TimeSurgeLabs","description":"Template for generating tasks for a larger LangChain LLM project","archived":false,"fork":false,"pushed_at":"2024-02-14T02:24:05.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T05:42:51.281Z","etag":null,"topics":["langchain","langchain-python","llm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimeSurgeLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-14T01:53:38.000Z","updated_at":"2024-02-14T02:07:10.000Z","dependencies_parsed_at":"2024-02-14T03:32:09.486Z","dependency_job_id":null,"html_url":"https://github.com/TimeSurgeLabs/langchain-task-template","commit_stats":null,"previous_names":["timesurgelabs/langchain-task-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeSurgeLabs%2Flangchain-task-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeSurgeLabs%2Flangchain-task-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeSurgeLabs%2Flangchain-task-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeSurgeLabs%2Flangchain-task-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimeSurgeLabs","download_url":"https://codeload.github.com/TimeSurgeLabs/langchain-task-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374326,"owners_count":20280661,"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":["langchain","langchain-python","llm","python"],"created_at":"2024-11-19T04:39:48.654Z","updated_at":"2025-12-28T21:24:19.460Z","avatar_url":"https://github.com/TimeSurgeLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Langchain Task Template repo\n\nThis is a template repo that is meant to be used whenever you are trying to use LangChain to automate some task with LLMs. This example takes about three minutes to run.\n\n# Best practices\n\nFirst, you should define what it is you are trying to have the LLM accomplish in the form of a simple step by step guide.  \nAn example is in [how_to_make_good_polls.md](how_to_make_good_polls.md).  \nThis will be your guide for structuring the tool you are trying to make.\n\nFor each step you can try:\n* Asking chatgpt outright to do it in the form of a prompt, be sure to ask for its reasoning, encourage it, and include few shot prompting/examples, \n* Iterate to make a part of it better\n* Rank output and cherry pick the best option\n\n# Install Dependencies\n- Python 3.11+\n- Poetry\n   - For installation, see their [official docs](https://python-poetry.org/docs/#installing-with-the-official-installer).\n\n# Installation\n```sh\npoetry install --no-root\ncp example.env .env # put the proper env vars here\n```\n\n# Run the project\n\n```\npoetry run python main.py generate_poll --topic \"programming\"\npoetry run python main.py generate_question --topic \"programming\"\npoetry run python main.py generate_answers --question \"which programming language is easiest to use\"\npoetry run python main.py rank_poll --topic \"programming\" --target_audience \"software developers\" # generates and ranks a poll\n```\n\n# Relevant links\n* [OpenAI Docs](https://platform.openai.com/docs/guides/text-generation)  \n* [LangChain Quickstart](https://python.langchain.com/docs/get_started/quickstart)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimesurgelabs%2Flangchain-task-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimesurgelabs%2Flangchain-task-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimesurgelabs%2Flangchain-task-template/lists"}