Knowledge Base Guide
Learn how to configure and optimize your Knowledge Base for better camelAI performance
The Knowledge Base is a critical feature that enhances camelAI’s ability to understand and analyze your data accurately. It provides context-specific information that helps camelAI deliver consistent, relevant insights tailored to your business domain.
What is the Knowledge Base?
The knowledge base is a text area where you define important context about your data, business logic, and terminology. This information helps camelAI:
- Maintain consistent metric definitions across all queries
- Navigate complex schemas by understanding which tables to prioritize or avoid
- Interpret ambiguous column names and relationships
- Apply proper data formatting and display preferences
- Handle time periods and date calculations correctly
- Understand locale-specific requirements (currency, language, regional formats)
Best Practices
1. Always Include a Dataset Description
Every knowledge base should start with a clear description of what your dataset represents. This foundational context helps camelAI understand the overall purpose and structure of your data.
2. Specify Standard Schemas
If your data follows a well-known schema or is a replica of a standard system, explicitly state this. camelAI can leverage its understanding of common schemas to provide better insights.
Examples of standard schemas to mention:
- “This PostgreSQL database mirrors our Salesforce CRM data structure”
- “Our MySQL database follows the Shopify schema for e-commerce data”
- “This dataset implements the FHIR standard for healthcare records”
- “Our analytics tables follow the Google Analytics 4 event schema”
3. Define Company-Specific Terminology
Document any terms that have specific meanings within your organization, especially when they differ from industry standards or could be ambiguous.
We recommend using multiple focused entries to improve RAG performance.
4. Clarify Complex Relationships
Help camelAI navigate joins and relationships by explaining non-obvious connections between tables.
5. Specify Data Preferences
Include preferences for how data should be formatted, calculated, or displayed.
6. Document Data Quality Issues
Be transparent about known data limitations or quality issues to prevent misleading analyses.
Structuring Knowledge Base Entries
Use Multiple Focused Entries
Due to RAG implementation, multiple smaller, focused entries perform better than one large entry.
Managing Your Knowledge Base
You can create, read, update, and delete knowledge base entries through the API or through the developer console. Changes take effect immediately for all new conversations.
Tips for Maintenance
Regular Reviews
Review and update your knowledge base quarterly to ensure accuracy
Stay Current
Add new definitions as your business evolves
Clean Up
Remove outdated information to prevent confusion
Test Changes
Test the impact of changes using the preview feature in the developer console
Next Steps
Configure Reference Queries
Learn how to set up complex, frequently-used calculations for better performance