Skip to content

An interactive integration of yFiles for HTML with LlamaIndex to visualize the knowledge graph used for query resolution.

Notifications You must be signed in to change notification settings

yWorks/yfiles-graph-for-create-llama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

This is a LlamaIndex project bootstrapped with create-llama.

yFiles Integration for Knowledge Graph Exploration

This integration with yFiles then allows you to visualize the specific nodes involved in generating answers within a knowledge graph. You can easily identify which nodes contribute to an answer and further explore the graph by expanding neighboring nodes for a broader context.

Understand How LlamaIndex Constructs Answers

With this tool, you can gain deeper insights into how LlamaIndex processes information. It showcases the data from source nodes used to create a final answer. By visualizing the flow from source nodes to answers, you can better understand the logic behind the results and interactively explore the connections in the knowledge graph.

Getting Started

Before beginning the project, ensure you add your agent specifications to a .env file located in the backend folder. Alternatively, you can modify the .env_template file located in the backend and rename it to .env.

To use this template, first obtain a free yFiles for HTML evaluation package (note the yfiles dependency in frontent/package.json) then add your OpenAI key and uncomment the line marked with a TODO.

Then startup the backend as described in the backend README and start the development server of the frontend as described in the frontend README.

Open http://localhost:3000 with your browser to see the result.

To view a graph, submit a question related to the files you have uploaded. To expand a node, simply double-click on it. A node will only expand if there are hidden neighboring nodes available to reveal.

Learn More

To learn more about LlamaIndex, take a look at the following resources:

You can check out the LlamaIndexTS GitHub repository - your feedback and contributions are welcome!