{"id":22476886,"url":"https://github.com/hmshb/langchain-google-gemini-integration","last_synced_at":"2026-04-18T04:01:43.804Z","repository":{"id":266824007,"uuid":"899400743","full_name":"hmshb/langchain-google-gemini-integration","owner":"hmshb","description":"This repo contains integration of LangChain with Google Gemini LLM","archived":false,"fork":false,"pushed_at":"2024-12-10T07:52:42.000Z","size":260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T12:59:00.910Z","etag":null,"topics":["ai","google-gemini","google-gemini-ai","langchain","large-language-models","machine-learning","machine-learning-models","multimodel-large-language-model","programming","python"],"latest_commit_sha":null,"homepage":"https://github.com/hmshb/langchain-google-gemini-integration","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/hmshb.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-06T07:30:37.000Z","updated_at":"2024-12-10T07:52:23.000Z","dependencies_parsed_at":"2025-02-01T20:45:06.749Z","dependency_job_id":"c3bea793-fe17-44a3-b043-fe976343df72","html_url":"https://github.com/hmshb/langchain-google-gemini-integration","commit_stats":null,"previous_names":["hmshb/langchain-google-gemini-integration"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/hmshb/langchain-google-gemini-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmshb%2Flangchain-google-gemini-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmshb%2Flangchain-google-gemini-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmshb%2Flangchain-google-gemini-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmshb%2Flangchain-google-gemini-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmshb","download_url":"https://codeload.github.com/hmshb/langchain-google-gemini-integration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmshb%2Flangchain-google-gemini-integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","google-gemini","google-gemini-ai","langchain","large-language-models","machine-learning","machine-learning-models","multimodel-large-language-model","programming","python"],"created_at":"2024-12-06T14:08:28.684Z","updated_at":"2026-04-18T04:01:43.742Z","avatar_url":"https://github.com/hmshb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangChain + Google Gemini AI Model Integration Example\n\nThis repository demonstrates how to integrate [LangChain](https://github.com/hwchase17/langchain) with [Google Gemini](https://ai.google/) to build AI-powered applications using multimodal capabilities. It's designed as a starting point for developers looking to explore and experiment with LangChain and Google Gemini AI.\n\n## 🚀 Features\n- **Seamless integration**: Connect LangChain with Google Gemini for text and multimodal tasks.\n- **Beginner-friendly**: Simple setup to get started quickly.\n- **Extensible**: Encourage contributions and customizations for advanced use cases.\n\n---\n\n## 🛠️ Setup Instructions\n\nFollow these steps to set up and run the project on your local machine:\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/hmshb/langchain-google-gemini-integration.git\ncd langchain-google-gemini-integration\n```\n\n### 2. Create a Virtual Environment\n```bash\npython -m venv venv\nsource venv/bin/activate  # For Linux/Mac\n\n.\\venv\\Scripts\\activate # For Windows\n```\n\n### 3. Install Dependencies\n```bash\npip install -r requirements.txt\n```\n\n![img.png](img.png)\n\n### 4. Generate a Google API Key\n1. Visit Google AI Studio.\n2. Create an API key for accessing Google Gemini.\n3. Copy the generated API key.\n\n![img_1.png](img_1.png)\n\n### 5. Update ```.env``` File\n - Add the following line to the .env file, replacing your_google_api_key with your actual API key:\n    ```\n    GEMINI_API_KEY=your_google_api_key\n    ```\n   \n### 6. Run the project\n```bash\npython index.py\n```\n\n![img_2.png](img_2.png)\n\n---\n\n## 📂 Project Structure\n```\nlangchain-google-gemini-integration/\n├── .env                                     # API key configuration file\n├── gemini.py                                # Gemini AI LLM Model configurations file\n├── index.py                                 # Simple script that translate word from English to Italian\n├── prompt_template_single_variable.py       # Example of single variable usage in Prompt Template\n├── prompt_template_multiple_variable.py     # Example of multiple variable usage in Prompt Template\n├── prompt_template_conditional_prompts.py   # Example of conditional variable usage in Prompt Template\n├── requirements.txt                         # Optional: Use for dependencies\n├── README.md                                # Documentation file\n├── venv/                                    # Virtual environment\n```\n\n---\n\n## ⭐ Acknowledgments\n\nSpecial thanks to:\n\n- **[LangChain](https://github.com/hwchase17/langchain)** for providing a robust framework for building LLM applications.\n- **[Google Gemini](https://ai.google/)** for their powerful multimodal AI capabilities.\n\n---\n\n## 📜 License\n\nThis project is open-source and licensed under the [MIT License](LICENSE).\n\n---\n\n## 📢 Get Involved!\n\nIf you find this repository helpful, please consider:\n\n- ⭐ **Starring the Repository** to show your support.\n- 📤 **Forking the Repository** to explore further and make your own customizations.\n- 💬 **Sharing Your Feedback** by opening issues or discussions.\n\nLet's build amazing AI-powered applications together!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmshb%2Flangchain-google-gemini-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmshb%2Flangchain-google-gemini-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmshb%2Flangchain-google-gemini-integration/lists"}