Schema Copilot
The Schema Copilot is a chat-based interface in the Graphora web UI that helps you create and refine ontology schemas through natural language conversation. Instead of writing YAML from scratch, describe your domain in plain language and let AI generate the schema for you.How It Works
Describe your domain
Tell the copilot what you want to model. For example:
“I want to extract information about companies, their products, and the people who work there. Companies have names and industries. People have names, titles, and email addresses. Products have names and descriptions.”The copilot uses a freeflow chat interface with streaming responses, so you see the schema being built in real time.
Review the generated schema
The copilot generates a complete ontology YAML with entities, properties, relationships, and quality rules. Review it in the editor.
Refine through conversation
Continue the conversation to adjust the schema:
“Add a foundedYear property to Company as an integer. Also add a COMPETES_WITH relationship between companies.”
The copilot updates the schema incrementally based on your feedback.Tips for Better Results
- Be specific about property types. Instead of “companies have revenue”, say “companies have revenue as an integer representing USD.”
- Mention cardinality. For example: “A company can have many products, but a product belongs to one company.”
- Include constraints. Say things like “company name should be unique and required.”
- Iterate. Start with core entities and add complexity through follow-up messages.
- Ask for quality rules. Tell the copilot: “Add quality rules to validate email format and ensure company names are not empty.”
When to Use the Copilot vs. Manual Editing
| Scenario | Recommended Approach |
|---|---|
| Starting from scratch | Schema Copilot |
| Quick domain exploration | Schema Copilot |
| Precise control over every field | Manual YAML editing |
| Complex quality rules | Start with Copilot, refine in YAML editor |
| Existing schema to import | Upload YAML directly |
Next Steps
YAML Syntax Reference
Understand the full ontology YAML format for manual editing
Quality Rules
Add validation rules to ensure data quality
Ontology Examples
Browse complete ontology examples for different domains
Transform Documents
Use your schema to extract knowledge graphs from documents
