Skip to content

Conversation

OskarStark
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Docs? yes
Issues Follows #641
License MIT

Add documentation for the improved store alias functionality that allows multiple stores with the same name across different types. The feature provides both simple aliases and type-prefixed aliases for flexible dependency injection without conflicts.

@carsonbot carsonbot added AI Bundle Issues & PRs about the AI integration bundle Status: Needs Review labels Sep 23, 2025
@OskarStark OskarStark self-assigned this Sep 23, 2025
{
public function __construct(
private StoreInterface $main, // Uses memory store (first occurrence)
private StoreInterface $weaviate_main, // Explicitly uses weaviate store
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if this should be $weaviateMain @Guikingone

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, in the version you pushed, it could be:

private StoreInterface $chromaDbMain # Not sure about `Db`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was working on the documentation before you merged, I'm slow 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, in the version you pushed, it could be:

So should I change that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change it to chromaDbMain, it respects the PSRs and Symfony style guideline, not a fan of the foo_bar syntax 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is working, ok 😄

OskarStark added a commit to OskarStark/ai that referenced this pull request Sep 23, 2025
Eliminate code duplication in options.php by introducing an $addModelNode
closure that handles model configuration for both agent and vectorizer sections.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@OskarStark OskarStark force-pushed the feature/store-alias-documentation branch from a53c76d to 46d92ab Compare September 23, 2025 12:18
@OskarStark OskarStark merged commit 850aa84 into symfony:main Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Bundle Issues & PRs about the AI integration bundle Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants