[TEST-01] Integration Tests for KM-RAG Retrieval #8

Open
opened 2026-05-05 12:15:04 +00:00 by mjasin · 0 comments
Owner

Full Detail: We lack automated verification that the Knowledge-Map RAG retrieval works correctly with the pgvector database and tenant isolation.

Action:

  • Create a new project tests/NexusReader.IntegrationTests.
  • Implement a test that:
    1. Seeds a test database with specific KnowledgeUnits for Tenant A and Tenant B.
    2. Performs a semantic search as Tenant A.
    3. Asserts that NO data from Tenant B is returned, and relevant context for Tenant A is present.
**Full Detail:** We lack automated verification that the Knowledge-Map RAG retrieval works correctly with the `pgvector` database and tenant isolation. **Action:** - Create a new project `tests/NexusReader.IntegrationTests`. - Implement a test that: 1. Seeds a test database with specific `KnowledgeUnits` for `Tenant A` and `Tenant B`. 2. Performs a semantic search as `Tenant A`. 3. Asserts that NO data from `Tenant B` is returned, and relevant context for `Tenant A` is present.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#8