Extract Knowledge Graphs in 5 Minutes
Turning unstructured documents into structured, queryable knowledge is painfully slow. You either spend hours manually tagging entities and relationships, or you build complex extraction pipelines that break on edge cases. Graphora solves this with AI-powered knowledge graph extraction that works out of the box -- no schema definition, no configuration, no database setup required.
Option 1: Try the Demo (30 seconds)
The fastest way to see Graphora in action:
- Visit demo.graphora.io
- Upload a PDF or paste text directly
- Watch the AI automatically extract entities and relationships
- Explore the interactive graph visualization
No signup, no credit card, no installation. Just drag, drop, and explore.
Option 2: Google Colab (2 minutes)
Run Graphora in your browser with zero setup:
The notebook walks you through:
- Installing Graphora with one line
- Configuring your Gemini API key
- Extracting a knowledge graph from your documents
- Exploring and visualizing the results
Perfect for experimentation and learning the API without touching your local environment.
Option 3: CLI (5 minutes)
For developers who prefer the command line:
1# Install the CLI2pip install graphora[cli]3
4# Configure your Gemini API key (get one free at https://aistudio.google.com/apikey)5graphora config init --api-key "YOUR_GEMINI_API_KEY"6
7# Extract a knowledge graph8graphora extract document.pdf --output graph.json9
10# Or extract directly to Cypher format for Neo4j11graphora extract document.pdf --format cypher --output import.cypherThat's it. Graphora runs in-memory by default and infers the schema automatically from your documents. The only requirement is a Gemini API key for the AI extraction.
Using the Python Client
For programmatic access, install the Python client:
1pip install graphoraThen use it in your code:
1from graphora import GraphoraClient2
3client = GraphoraClient(base_url="http://localhost:8000")4
5# Upload and extract6result = client.extract("report.pdf")7
8# Query entities9entities = result.entities10relationships = result.relationshipsWhat's Happening Under the Hood?
When you run graphora extract, here's what happens:
- Document Parsing: Extracts text from PDFs, DOCX, HTML, or plain text files
- Schema Inference: AI analyzes the content and determines relevant entity types and relationship patterns
- Entity Extraction: Identifies and extracts entities (people, organizations, concepts, dates, etc.)
- Relationship Detection: Maps connections between entities based on context
- Deduplication: Merges duplicate entities using semantic similarity and fuzzy matching
All of this runs automatically. You get a clean, queryable knowledge graph without writing a single line of schema code.
Why Graphora?
| Feature | Graphora | LangChain GraphTransformer | Microsoft GraphRAG |
|---|---|---|---|
| Zero-config start | Yes | Partial | No |
| Auto schema inference | Yes | No | No |
| Quality validation | Yes | No | No |
| Human review workflow | Yes | No | No |
| Visual schema builder | Yes | No | No |
| Schema chat copilot | Yes | No | No |
| Entity deduplication | Yes (Splink) | Partial | Yes |
Customizing the Schema
Want more control? Define your own schema in YAML:
1# schema.yaml2entities:3 - name: Person4 properties:5 - name6 - title7 - email8 - name: Company9 properties:10 - name11 - industry12 - location13
14relationships:15 - type: WORKS_AT16 source: Person17 target: Company18 - type: PARTNERS_WITH19 source: Company20 target: CompanyThen pass it to the CLI:
1graphora extract report.pdf --schema schema.yaml --output graph.jsonGraphora will extract only the entities and relationships you've defined, giving you full control over the output structure.
Next Steps
Ready to go deeper? Here's where to go next:
- Interactive Schema Designer: Build custom schemas visually with the drag-and-drop ontology builder
- API Documentation: Integrate Graphora into your applications with the REST API or Python SDK
- Self-Hosting Guide: Deploy Graphora in your infrastructure with full control and privacy
- GitHub Repository: Browse the source code, report issues, and contribute
Need Help?
- GitHub Discussions: Ask questions, share use cases, and connect with the community
- Email: [email protected]
Start extracting knowledge graphs today. No PhD in NLP required.