# Architecture

# Architecture

Curiosity Workspace is a single product that brings together three layers that are often separate in modern data stacks:

  • Graph layer: stores a knowledge graph (nodes + edges) with schemas, properties, and traversals.
  • Search layer: provides text retrieval, ranking, filtering, and query-time constraints.
  • AI layer: embeddings, NLP extraction, and LLM-driven features that use graph + search as grounding.

The platform is designed so these layers reinforce each other:

  • Graph relationships improve navigation, filtering, and context building
  • Search provides fast retrieval and ranking at scale
  • AI adds semantic recall (embeddings) and reasoning/synthesis (LLMs) where appropriate

# Core building blocks

  • Workspace
    • an environment that contains data, configuration, and extensibility artifacts
  • Schemas
    • node schemas and edge schemas define the types and constraints of the graph
  • Indexes
    • text indexes and embedding indexes over selected fields
  • Pipelines
    • NLP processing that turns text into structured signals and graph links
  • Extensibility
    • custom endpoints (server-side logic)
    • custom interfaces (front-end apps)

# Typical request flows

# Search and discovery flow

  1. A user searches for a term (keywords and/or semantic query).
  2. The search engine retrieves candidates (text and/or vector).
  3. The system applies filters (properties and/or graph-related facets).
  4. Results are ranked and returned; graph neighbors can be fetched for previews and navigation.

# AI-assisted flow (retrieval + reasoning)

  1. A user asks a question or starts a workflow.
  2. The system retrieves grounding context from search/graph.
  3. The LLM generates a response using that context.
  4. Optional: the result is saved back into the workspace (notes, links, tags) via endpoints/tasks.

# Design goals

  • Schema-first clarity: you control what types exist and how they relate.
  • Configurable retrieval: tune relevance without rewriting your app.
  • Safe extensibility: move business logic into versionable endpoints and controlled interfaces.
  • Operational control: deployments can be monitored, secured, and promoted across environments.

# Next steps

  • Understand how data moves through the system: Data Flow
  • Learn the foundational data structure: Graph Model