Merged
Conversation
added 3 commits
September 23, 2025 09:29
There was a problem hiding this comment.
Pull Request Overview
This pull request implements major API simplification in v0.2.0-rc3 by transforming all batch operations into single-item operations. The changes maintain consistency across vector stores, RAG operations, and tests.
- Converts batch document operations to single-item operations across all interfaces
- Simplifies query results from nested arrays to single arrays
- Updates all tests and examples to use the new single-item API
- Bumps version to 0.2.0-rc3 across all packages
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vector_stores/memoryVectorStore.ts | Major API simplification - converts batch operations to single-item operations and implements embedding dimension validation |
| src/utils/vectorMath.ts | Simplifies documentation comments to be more concise |
| src/types/common.ts | Updates type definitions with cleaner documentation and makes document field optional in GetResult |
| src/rag/rag.ts | Updates RAG class to use new single-item vector store API and simplifies parameter handling |
| src/interfaces/vectorStore.ts | Updates VectorStore interface to use single-item operations instead of batch operations |
| src/hooks/rag.ts | Updates React hook to use new single-item API with simplified parameter handling |
| src/tests/rag.integration.test.ts | Updates integration tests to use new single-item API |
| src/tests/memoryVectorStore.test.ts | Updates unit tests to use new single-item API and adds validation for new error conditions |
| packages/op-sqlite/src/wrappers/op-sqlite.ts | Converts OPSQLiteVectorStore to use single-item operations and simplifies database queries |
| packages/op-sqlite/package.json | Updates version to 0.2.0-rc3 |
| packages/executorch/src/wrappers/llms.ts | Updates documentation and adds isLoaded state management |
| packages/executorch/src/wrappers/embeddings.ts | Updates documentation and adds isLoaded state management |
| packages/executorch/package.json | Updates version to 0.2.0-rc3 |
| package.json | Updates main package version to 0.2.0-rc3 |
| example/src/App.tsx | Updates example to use OPSQLiteVectorStore and new single-item API |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…VectorStore update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.