Create a Knowledge Graph
Learn how to create and visualize knowledge graphs to represent connected information and relationships
Follow these steps to create your first knowledge graph:
-
Prepare Your Content
- Ensure your content is loaded into your library
- Wait for processing to complete (indicated by three solid white dots)
-
Initialize Graph Creation
- Navigate to the Memory section
- Click the + button to create a new memory
- Select “Graph” as your memory type
-
Select Content
- Choose the content samples you want to include in your graph
- Click the “Next” button in the top right when ready
-
Choose Ontology
- Select an ontology that best matches your use case
- Don’t see a suitable ontology? Contact us for a custom solution
-
Start Processing
- Click the “Next” icon in the top right to begin graph creation
- Your graph will now start processing
Understanding the Processing Stage
During processing, you’ll see:
- Files Processed counter at the top
- This shows status of files being parsed into RDF graphs
- Memory Status
- This shows status of the memory creation. When all files have been processed, the queue will load a GPU instance to complete the graph.
Note: The entire process typically takes 10 minutes or less. You can safely navigate away and return to check progress.
Graph Completion
Your graph is ready when:
- Step three changes from a “3” icon to a “Check” icon
- The Memory page for this graph displays a knowledge graph preview
The philisophical question of when is a graph actually complete is open to debate. We have prevoiusly used, “When further additions, subtractions, or modifications will not meaningfully improve the quality of responses.” though you may arrive at a more elegant definition.
Interacting with Your Graph
The knowledge graph viewer offers several ways to explore your data:
- Click the full-width icon for full-screen view
- Use mouse wheel to zoom in/out
- Hover over nodes to view detailed information
- Click and drag to rotate the graph around its center axis
Using Your Graph
You can use your graph by copying the memoryID in the top right corner of the graph viewer, or in the graph preview screen.
Use this with our API or Python client to query your graph.
Alternatively, you can test your graph by creating a voice bot through the studio.