docs/ai_builder/features/knowledge.md
Knowledge gives the agent reusable context that should guide more than one prompt. Reflex Build separates project-wide knowledge from instructions that apply only to the current app.
import reflex as rx
rx.image(
src="https://web.reflex-assets.dev/docs-preview/ai-builder/platform/knowledge_project.webp",
alt="Project Knowledge entries and their automatic enablement state",
class_name="rounded-md h-auto mb-4",
border=f"0.81px solid {rx.color('slate', 5)}",
)
Use project knowledge for guidance shared by apps in the same project, such as:
You can manage project knowledge from Knowledge in the project sidebar or follow the project-knowledge link in the app's Knowledge panel.
Open the app's more menu and select Knowledge. Add instructions that should apply only to the current app, such as:
Use "workspace" instead of "tenant" in user-facing copy.
Keep state transformations in State methods rather than UI components.
Every data table must include loading, empty, and error states.
App instructions save when you select another control. Keep them short, specific, and current; contradictory or obsolete instructions make generation less predictable.
Use a design system for reusable visual guidance such as color tokens, typography, spacing, and component patterns. Keep behavior and architecture rules in Knowledge so each source of context has a clear purpose.