Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A minimal implementation of GraphRAG, designed to quickly prototype whether you're able to get good sense-making out of a large dataset with creation of a knowledge graph.

NotificationsYou must be signed in to change notification settings

khoj-ai/knowledge-graph

Repository files navigation

GraphRAG is a technique proposed by Microsoft Research to generate knowledge graphs from text using LLMs. This project is an implementation of GraphRAG in Python. It makes it simple to get up and running with GraphRAG and generate knowledge graphs from text. It also provides a semantic search interface to query the knowledge graph.

Install

This project usesuv for Python dependency management.

To install uv, follow the instructionshere.

Install the dependencies with the following command:

uv run pip install

Usage

  1. Add the files you want to add to your knowledge graph in thedata folder.

  2. Set yourGOOGLE_API_KEY in the.env file. You can get it fromhere.

  3. Run the following command to generate the knowledge graph:

First, start the Chroma server:

chroma run --path db
python3 graph.py
  1. The knowledge graph will be saved in a chromadb database in thedb folder. To query it, run
python3 query_cli.py
  1. To visualize the knowledge graph, run
streamlit run visualize.py

About

A minimal implementation of GraphRAG, designed to quickly prototype whether you're able to get good sense-making out of a large dataset with creation of a knowledge graph.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp