Skip to content

This repository contains code examples from the article on building knowledge graphs and leveraging them for LLM queries, using the Llama-Index library.

Notifications You must be signed in to change notification settings

linafaik08/knowledge_graphs_llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knowledge Graphs & LLM

  • Author: Lina Faik
  • Creation date: August 2024
  • Last update: August 2022

Objective

This repository contains the code and notebooks used in the article on building knowledge graphs and leveraging them for LLM queries, utilizing the Llama-Index library. For more information, you can find the articles here:

From Text to Networks: The Revolutionary Impact of LLMs on Knowledge Graphs
Practical Application to Customer Churn Prediction

You can find all my technical blog posts here.

Project Description

Data

The data used in this repository is sourced from the Wikipedia page on the Panama Papers scandal.

Code structure

data # folder containing the source documents
notebooks # experiments
├── 01_kg_extraction.ipynb 
├── 02_kg_querying.ipynb
outputs # experiments results
config.py
requirements.txt
README.md

How to Use This Repository?

Requirement

The code relies on the following libraries:

pyvis==0.3.2
llama_index==0.10.65

Experiments

To run experiments, you need to run the notebooks in the order suggested by their names.

About

This repository contains code examples from the article on building knowledge graphs and leveraging them for LLM queries, using the Llama-Index library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published