[Infrastructure] Update Ebook Entity and Setup pgvector for Knowledge Units #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: We are utilizing PostgreSQL with the pgvector extension for NexusReader. We need to define entities in .NET 10 to support dynamic storage of ebook metadata and vector-based Knowledge Units (embeddings).
Role: Lead Data Architect.
Task: Refactor the
DomainandInfrastructureprojects to support dynamic data.Requirements:
EbookEntity: Update the existingEbook.csto include properties forFilePath(string, mapping to assets path or Blob Storage),Title,Author, and a booleanIsReadyForReading.KnowledgeUnitEntity: Create a newKnowledgeUnit.csentity to store semantic chunks. Requirements: text chunk, foreign key reference to sourceEbookId, and aVectorproperty of typefloat[].Infrastructureproject, configure EF Core to map thefloat[]property to a PostgreSQL vector column. Explicitly define the vector dimension required by Google Gemini (e.g.,vector(768)). Ensure migrations are Native AOT compatible if possible.Antigravity referenced this issue2026-05-13 18:39:37 +00:00