Skip to content

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Oct 6, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues --
License MIT

Replace separate vectorizeTextDocuments() and vectorize(string) methods with a single vectorize() method that handles:

  • string -> Vector
  • array -> array
  • TextDocument -> VectorDocument
  • array -> array

Add PHPStan conditional return types for proper type inference. Add validation to ensure arrays contain only strings or TextDocuments. Update all usages across codebase including tests and examples.

cc @paulinevos

@OskarStark OskarStark self-assigned this Oct 6, 2025
@carsonbot carsonbot added Feature New feature Store Issues & PRs about the AI Store component Status: Needs Review labels Oct 6, 2025
@OskarStark OskarStark force-pushed the OskarStark/vectorize-unification branch 3 times, most recently from bb3255d to 6bb6631 Compare October 6, 2025 15:34
@OskarStark OskarStark force-pushed the OskarStark/vectorize-unification branch 4 times, most recently from 8100e60 to a7a843b Compare October 6, 2025 18:46
@OskarStark OskarStark force-pushed the OskarStark/vectorize-unification branch from 9109db1 to 3fa8960 Compare October 6, 2025 19:03
@OskarStark OskarStark merged commit 3fd202f into symfony:main Oct 6, 2025
@OskarStark OskarStark deleted the OskarStark/vectorize-unification branch October 6, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Status: Needs Review Store Issues & PRs about the AI Store component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants