Skip to content

refactor: update AI enrichment tests for improved clarity and consist…#11

Merged
leduclinh7141 merged 1 commit into
mainfrom
fix/20260207-installation
Feb 7, 2026
Merged

refactor: update AI enrichment tests for improved clarity and consist…#11
leduclinh7141 merged 1 commit into
mainfrom
fix/20260207-installation

Conversation

@leduclinh7141

Copy link
Copy Markdown
Contributor

…ency

  • Enhanced test cases in ai-enrichment.test.ts to utilize consistent mocking and assertions.
  • Simplified checks for enriched data and improved readability.
  • Consolidated environment variable checks into parameterized tests for better maintainability.
  • Updated error handling tests to ensure null returns on invalid inputs.
  • Refined type checks for error messages and observations in handlers.test.ts.

chore: migrate from HNSW indexing to sqlite-vec in memory management

  • Removed HNSW index dependencies and related configurations from index.ts and types.ts.
  • Updated ProjectMemoryService to leverage sqlite-vec for vector indexing and search.
  • Added migration methods for existing embeddings to ensure compatibility with sqlite-vec.
  • Adjusted backend initialization to support new vector search capabilities.
  • Cleaned up deprecated options and comments related to HNSW indexing.

…ency

- Enhanced test cases in `ai-enrichment.test.ts` to utilize consistent mocking and assertions.
- Simplified checks for enriched data and improved readability.
- Consolidated environment variable checks into parameterized tests for better maintainability.
- Updated error handling tests to ensure null returns on invalid inputs.
- Refined type checks for error messages and observations in `handlers.test.ts`.

chore: migrate from HNSW indexing to sqlite-vec in memory management

- Removed HNSW index dependencies and related configurations from `index.ts` and `types.ts`.
- Updated `ProjectMemoryService` to leverage sqlite-vec for vector indexing and search.
- Added migration methods for existing embeddings to ensure compatibility with sqlite-vec.
- Adjusted backend initialization to support new vector search capabilities.
- Cleaned up deprecated options and comments related to HNSW indexing.
@leduclinh7141 leduclinh7141 merged commit f1ff75f into main Feb 7, 2026
11 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