{"id":29038725,"url":"https://github.com/aayatech/knowledge-graph-llms","last_synced_at":"2025-06-26T14:02:19.729Z","repository":{"id":296654045,"uuid":"994032742","full_name":"Aayatech/knowledge-graph-llms","owner":"Aayatech","description":"Knowledge Graph Generator is a Streamlit app that extracts graph data from text using LangChain and OpenAI's GPT models. 🌐 It creates interactive graphs, allowing users to visualize entities and relationships easily. 🛠️","archived":false,"fork":false,"pushed_at":"2025-06-22T21:00:11.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T22:17:49.602Z","etag":null,"topics":["awesome","awesome-kg","awsome-list","bert-models","bioinformatics","bioinformatics-algorithms","commonsense","gpt4","graph","graphml","knowledge","knowledge-base","language-models","large-language-models","llm","prompt","retrieval-augmented-generation","streamlit"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":false,"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/Aayatech.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-01T03:43:52.000Z","updated_at":"2025-06-22T21:00:14.000Z","dependencies_parsed_at":"2025-06-01T14:28:24.414Z","dependency_job_id":"603f5c90-fcb0-4d26-873b-4a4af76ddc6c","html_url":"https://github.com/Aayatech/knowledge-graph-llms","commit_stats":null,"previous_names":["aayatech/knowledge-graph-llms"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Aayatech/knowledge-graph-llms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayatech%2Fknowledge-graph-llms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayatech%2Fknowledge-graph-llms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayatech%2Fknowledge-graph-llms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayatech%2Fknowledge-graph-llms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aayatech","download_url":"https://codeload.github.com/Aayatech/knowledge-graph-llms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayatech%2Fknowledge-graph-llms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262081074,"owners_count":23255657,"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":["awesome","awesome-kg","awsome-list","bert-models","bioinformatics","bioinformatics-algorithms","commonsense","gpt4","graph","graphml","knowledge","knowledge-base","language-models","large-language-models","llm","prompt","retrieval-augmented-generation","streamlit"],"created_at":"2025-06-26T14:01:00.725Z","updated_at":"2025-06-26T14:02:19.716Z","avatar_url":"https://github.com/Aayatech.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knowledge Graphs with LLMs 🌐\n\nWelcome to the **Knowledge Graphs with LLMs** repository! In this project, I explored how to extract knowledge graphs from text using large language models (LLMs), such as OpenAI's GPT-4. This document will guide you through the project structure, setup, usage, and contribution guidelines. \n\n[![Download Releases](https://img.shields.io/badge/Download%20Releases-blue.svg)](https://github.com/Aayatech/knowledge-graph-llms/releases)\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Project Overview](#project-overview)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Features](#features)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n## Introduction\n\nKnowledge graphs play a crucial role in organizing information. They represent relationships between entities in a structured format, making it easier to retrieve and analyze data. With the advent of LLMs, extracting knowledge from unstructured text has become more efficient and accurate. This project aims to leverage LLMs, particularly OpenAI's GPT-4, to automate the extraction of knowledge graphs from text.\n\n## Project Overview\n\nThe primary goal of this project is to demonstrate how LLMs can be utilized to extract knowledge graphs from various text sources. The project includes:\n\n- A detailed explanation of knowledge graphs.\n- Methods for text processing.\n- Implementation of extraction techniques using GPT-4.\n- Examples and use cases.\n\nThe extracted knowledge graphs can be used in various applications, such as search engines, recommendation systems, and data analytics.\n\n## Installation\n\nTo get started with this project, you need to clone the repository and install the required dependencies. Follow these steps:\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/Aayatech/knowledge-graph-llms.git\n   cd knowledge-graph-llms\n   ```\n\n2. **Install dependencies:**\n\n   Ensure you have Python 3.7 or higher installed. You can create a virtual environment for better package management.\n\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   pip install -r requirements.txt\n   ```\n\n3. **Download necessary models:**\n\n   You may need to download pre-trained models for LLMs. Follow the instructions in the `models/README.md` file.\n\n## Usage\n\nTo extract knowledge graphs from text, you can use the provided scripts. Here’s a quick guide:\n\n1. **Prepare your text data:**\n\n   Create a text file containing the information you want to process. For example, `input.txt`.\n\n2. **Run the extraction script:**\n\n   Execute the following command to start the extraction process:\n\n   ```bash\n   python extract_knowledge_graph.py --input input.txt --output output_graph.json\n   ```\n\n3. **View the results:**\n\n   The extracted knowledge graph will be saved in `output_graph.json`. You can visualize it using tools like Neo4j or Gephi.\n\nFor more detailed usage instructions, refer to the `docs/USAGE.md` file.\n\n## Features\n\n- **Automated Extraction:** Leverage LLMs to automate the extraction of knowledge graphs from unstructured text.\n- **Customizable Input:** Support for various text formats and sources.\n- **Output Formats:** Save extracted graphs in JSON, CSV, or GraphML formats.\n- **Visualization Tools:** Integrate with popular graph visualization tools for better insights.\n\n## Contributing\n\nWe welcome contributions to improve this project. Here’s how you can help:\n\n1. **Fork the repository.**\n2. **Create a new branch for your feature or bug fix.**\n3. **Make your changes and commit them.**\n4. **Push your branch and submit a pull request.**\n\nPlease ensure your code follows the existing style and includes appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any inquiries or feedback, feel free to reach out:\n\n- **Email:** [your.email@example.com](mailto:your.email@example.com)\n- **GitHub:** [Aayatech](https://github.com/Aayatech)\n\nYou can also check the [Releases](https://github.com/Aayatech/knowledge-graph-llms/releases) section for updates and new features.\n\nThank you for visiting the Knowledge Graphs with LLMs repository! Your support and contributions are greatly appreciated.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faayatech%2Fknowledge-graph-llms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faayatech%2Fknowledge-graph-llms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faayatech%2Fknowledge-graph-llms/lists"}