Knowledge Graph Overview
Understanding the Knowledge Graph in AgentisPro RAG Engine
Knowledge Graph Overview
The Knowledge Graph is the brain of AgentisPro RAG Engine. It stores entities, relationships, and context extracted from your documents, enabling intelligent multi-hop queries.
Automatic Extraction
You don't need to manually create the Knowledge Graph. AgentisPro automatically extracts entities and relationships from every document you upload using LightRAG's NLP pipeline.
What is a Knowledge Graph?
A Knowledge Graph is a network of:
- Nodes (Entities): People, organizations, products, concepts
- Edges (Relationships): How entities connect to each other
- Properties: Attributes of nodes and edges
How It's Built
Automatic Entity Extraction
When you upload a document, AgentisPro:
- Parses the document (text, images, audio, video)
- Extracts entities using LightRAG's NLP pipeline
- Detects relationships between entities
- Stores everything in Neo4j with workspace isolation
Technology Stack
| Component | Technology | Role |
|---|---|---|
| Storage | Neo4j 5.26+ | Graph database |
| Extraction | LightRAG | NLP entity/relationship extraction |
| Visualization | Sigma.js | Interactive graph UI |
| Vectors | Neo4j HNSW | Embedded in same database |
Key Features
🔗 Multi-Hop Queries
Ask questions that require following relationships:
"Who are the authors of documents related to Project X that mention compliance issues?"
The graph traverses: Project X → related_documents → Document → authored_by → Person
🏢 Workspace Isolation
Each workspace has its own isolated graph:
🔍 Combined Vector + Graph Search
Queries use both:
- Vector search: Find semantically similar chunks
- Graph traversal: Expand context via relationships
✏️ Manual Editing
You can:
- Add new entities manually
- Create relationships between entities
- Edit entity properties
- Delete entities and relationships
Entity Types
AgentisPro automatically classifies entities:
| Type | Icon | Examples |
|---|---|---|
| Person | 👤 | Employees, customers, authors |
| Organization | 🏢 | Companies, departments, teams |
| Product | 📦 | Products, services, features |
| Location | 📍 | Offices, regions, addresses |
| Event | 📅 | Meetings, launches, deadlines |
| Concept | 💡 | Topics, categories, tags |
| Document | 📄 | Files, reports, contracts |
Relationship Types
Common relationship patterns:
| Relationship | Example |
|---|---|
works_at | Person → Organization |
authored | Person → Document |
mentions | Document → Entity |
related_to | Entity → Entity |
part_of | Product → Product |
located_in | Organization → Location |
Accessing the Knowledge Graph
Web UI
Navigate to Knowledge Graph in the sidebar to:
- Visualize the graph
- Search for entities
- Explore relationships
- Edit nodes and edges
API
Best Practices
- Upload related documents together - Helps entity linking
- Use consistent naming - "Acme Corp" vs "Acme Corporation"
- Review extracted entities - Fix errors early
- Create manual relationships - For important connections