{"id":23571654,"url":"https://github.com/deffstudio/langchain-exercises","last_synced_at":"2026-05-09T09:06:04.369Z","repository":{"id":269691429,"uuid":"908113251","full_name":"deffstudio/langchain-exercises","owner":"deffstudio","description":"LangChain Simple LLM Application  This repository demonstrates how to build a simple LLM (Large Language Model) application using LangChain. The application translates text from English into another language using chat models and prompt templates. It includes examples of environment setup, etc.","archived":false,"fork":false,"pushed_at":"2025-01-13T17:12:23.000Z","size":2251,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T21:46:27.513Z","etag":null,"topics":["langchain","langchain-python","llm","openai"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/deffstudio.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-25T06:59:03.000Z","updated_at":"2025-01-13T17:12:26.000Z","dependencies_parsed_at":"2024-12-25T11:26:29.457Z","dependency_job_id":"cccd1adc-457c-4be5-85ba-7b511409a5f8","html_url":"https://github.com/deffstudio/langchain-exercises","commit_stats":null,"previous_names":["deffstudio/langchain-exercises"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deffstudio%2Flangchain-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deffstudio%2Flangchain-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deffstudio%2Flangchain-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deffstudio%2Flangchain-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deffstudio","download_url":"https://codeload.github.com/deffstudio/langchain-exercises/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254513081,"owners_count":22083502,"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","openai"],"created_at":"2024-12-26T20:18:57.340Z","updated_at":"2026-05-09T09:06:04.282Z","avatar_url":"https://github.com/deffstudio.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangChain Exercises Collection\n\nThis repository contains a collection of exercises demonstrating various concepts and models using LangChain. Each exercise showcases different features and capabilities of LangChain, such as text translation, prompt templates, and streaming responses.\n\n## Features\n\n- **Environment Setup**: Load environment variables using `dotenv`.\n- **Language Model Usage**: Utilize the `ChatOpenAI` model for text translation.\n- **Prompt Templates**: Create and use prompt templates for structured input to the language model.\n- **Streaming**: Stream responses from the language model.\n\n## Getting Started\n\n1. **Clone the repository**:\n\n   ```sh\n   git clone https://github.com/deffstudio/langchain-exercises.git\n   cd langchain-exercises\n   ```\n\n2. **Install dependencies**:\n\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n3. **Set up environment variables**:\n   Create a `.env` file in the root directory and add your API keys:\n\n   ```env\n   OPEN_API_KEY=your_openai_api_key\n   LANGCHAIN_API_KEY=your_langchain_api_key\n   ```\n\n4. **Run the Jupyter Notebook**:\n   ```sh\n   jupyter notebook 1.simple_llm_app.ipynb\n   ```\n\n## Usage\n\n- Follow the steps in the Jupyter Notebooks to learn how to use different language models and prompt templates.\n- Modify the prompt templates and messages to customize the exercises for different use cases.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeffstudio%2Flangchain-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeffstudio%2Flangchain-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeffstudio%2Flangchain-exercises/lists"}