Skip to content

feat: update package#5

Merged
shibadityadeb merged 1 commit into
mainfrom
knowledge-base
Jul 15, 2026
Merged

feat: update package#5
shibadityadeb merged 1 commit into
mainfrom
knowledge-base

Conversation

@shibadityadeb

@shibadityadeb shibadityadeb commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a Knowledge Explorer with searchable entities, filters, statistics, pagination, and detailed entity views.
    • Added interactive graph visualization, relationship exploration, and timeline views.
    • Added document-driven knowledge extraction, entity resolution, deduplication, timeline tracking, and semantic search.
    • Added support for Anthropic, OpenAI, Gemini, local, and mock extraction providers.
    • Knowledge processing now starts automatically after document ingestion.
  • Documentation

    • Added documentation covering the knowledge engine, APIs, workflows, and extension points.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 547025b0-9057-4135-bccc-1d53d4e2c8c2

📥 Commits

Reviewing files that changed from the base of the PR and between 23365d0 and 23cbf9a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (43)
  • apps/api/package.json
  • apps/api/prisma/migrations/20260715081331_knowledge_engine/migration.sql
  • apps/api/prisma/schema.prisma
  • apps/api/src/app.ts
  • apps/api/src/modules/knowledge-graph/knowledge-graph.routes.ts
  • apps/api/src/modules/knowledge-graph/knowledge-graph.schemas.ts
  • apps/api/src/modules/knowledge-graph/knowledge-graph.service.ts
  • apps/web/src/app/(app)/brain/entity/[id]/page.tsx
  • apps/web/src/app/(app)/brain/graph/page.tsx
  • apps/web/src/app/(app)/brain/page.tsx
  • apps/web/src/app/(app)/brain/timeline/page.tsx
  • apps/web/src/app/(app)/layout.tsx
  • apps/web/src/components/knowledge/graph-view.tsx
  • apps/web/src/lib/api.ts
  • docs/knowledge-engine.md
  • packages/activities/package.json
  • packages/activities/src/index.ts
  • packages/activities/src/knowledge-engine.activities.ts
  • packages/knowledge-engine/eslint.config.mjs
  • packages/knowledge-engine/package.json
  • packages/knowledge-engine/src/extraction.test.ts
  • packages/knowledge-engine/src/extraction.ts
  • packages/knowledge-engine/src/index.ts
  • packages/knowledge-engine/src/llm/anthropic.provider.ts
  • packages/knowledge-engine/src/llm/gemini.provider.ts
  • packages/knowledge-engine/src/llm/index.ts
  • packages/knowledge-engine/src/llm/local.provider.ts
  • packages/knowledge-engine/src/llm/mock.provider.ts
  • packages/knowledge-engine/src/llm/openai.provider.ts
  • packages/knowledge-engine/src/llm/types.ts
  • packages/knowledge-engine/src/resolution.test.ts
  • packages/knowledge-engine/src/resolution.ts
  • packages/knowledge-engine/src/schemas.test.ts
  • packages/knowledge-engine/src/schemas.ts
  • packages/knowledge-engine/tsconfig.json
  • packages/workflows/src/constants.ts
  • packages/workflows/src/definitions.ts
  • packages/workflows/src/index.ts
  • packages/workflows/src/workflows/document-ingestion.workflow.ts
  • packages/workflows/src/workflows/knowledge-engine.workflow.ts
  • services/temporal-worker/package.json
  • services/temporal-worker/src/config.ts
  • services/temporal-worker/src/index.ts

📝 Walkthrough

Walkthrough

Adds an organizational knowledge engine spanning Prisma storage, LLM extraction, Temporal workflows, graph APIs, and Brain frontend pages. The system supports entity resolution, relationships, timeline events, embeddings, deduplication, statistics, and document-triggered reprocessing.

Changes

Organizational Knowledge Engine

Layer / File(s) Summary
Knowledge data model
apps/api/prisma/*
Adds knowledge objects, relationships, aliases, mentions, timeline events, tags, references, versions, enums, indexes, and foreign-key constraints.
Extraction and provider package
packages/knowledge-engine/*
Adds strict Zod extraction schemas, retry-aware parsing, entity resolution, Anthropic/OpenAI/Gemini/local/mock providers, and tests.
Workflow orchestration and activities
packages/workflows/*, packages/activities/*, services/temporal-worker/*
Adds the staged Temporal extraction workflow, persistence activities, deduplication, timeline and embedding stages, LLM configuration, and ingestion-triggered child workflow startup.
Knowledge graph API
apps/api/src/modules/knowledge-graph/*, apps/api/src/app.ts
Adds authenticated organization-scoped endpoints for listing, searching, graph traversal, entity details, relationships, timelines, statistics, and reprocessing.
Brain frontend
apps/web/src/app/(app)/brain/*, apps/web/src/components/knowledge/*, apps/web/src/lib/api.ts
Adds explorer, graph, timeline, and entity pages with typed API access and interactive SVG graph rendering.
Documentation and navigation
docs/knowledge-engine.md, apps/web/src/app/(app)/layout.tsx
Documents the architecture and exposes Brain routes in application navigation.

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related PRs

  • shibadityadeb/Context-Brain#1: Extends the Temporal worker setup used to register knowledge-engine activities and configure the extraction provider.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch knowledge-base

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shibadityadeb
shibadityadeb merged commit da51021 into main Jul 15, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant