# SemanticKnowledgeCache

- File ID: file:1d4ycw2:semanticknowledgecache-cs
- Path: NexusReader.Domain/Entities/SemanticKnowledgeCache.cs
- Role: entity
- Layer: domain

## Purpose

Defines a domain entity that persists cached semantic knowledge (original text, model/prompt metadata, JSON payload) and its vector embedding for semantic search.

## Key Details

Entity stores deduplicated cached semantic artifacts keyed by ContentHash, includes model/prompt metadata, tenant scoping, JSON payload, optional Pgvector embedding (commented as 768 dims), and a UTC creation timestamp.

## Symbols

- SemanticKnowledgeCache: Defines a domain entity that persists cached semantic knowledge (original text, model/prompt metadata, JSON payload) and its vector embedding for semantic search.
- SemanticKnowledgeCache: Represents a cached semantic artifact including original text, serialized JSON, model/prompt metadata, tenant scoping, and an optional vector embedding used for semantic search.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Unresolved References

- dependency-target: Pgvector (external package)
- dependency-target: System.ComponentModel.DataAnnotations (framework)

## Coverage

- Symbols: 2
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 2
- Unresolved references: 2
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### SemanticKnowledgeCache Neighborhood

```mermaid
flowchart LR
    class_e0216a_semanticknowledgecache("SemanticKnowledgeCache")
    file_1d4ycw2_semanticknowledgecache_cs("SemanticKnowledgeCache")
    type_1gdonul_semanticknowledgecache[/"SemanticKnowledgeCache"/]
```

## Diagram Validation

- Status: pass
