The knowledge graph is a dynamic, queryable database of your structured information, designed to be accessed through natural language.
a1facts
uses a graph database to store entities and their relationships, allowing for complex queries and analysis. It is the central repository of factual information that your AI agents can rely on.
query_tool
(see API Reference) to translate the natural language query into a precise graph traversal. The results are then returned to the agent.
a1facts
supports Neo4j as a backend for the knowledge graph.
KnowledgeBase
with use_neo4j=True
, a1facts
will connect to your Neo4j instance and store the data there. This is the recommended approach for production environments or large datasets. If use_neo4j
is False
, an in-memory graph will be used by default.