-
-
Notifications
You must be signed in to change notification settings - Fork 102
[AI Bundle] Document store dependency injection improvement #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AI Bundle] Document store dependency injection improvement #650
Conversation
src/ai-bundle/doc/index.rst
Outdated
{ | ||
public function __construct( | ||
private StoreInterface $main, // Uses memory store (first occurrence) | ||
private StoreInterface $weaviate_main, // Explicitly uses weaviate store |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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`
There was a problem hiding this comment.
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 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry 😄
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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 😄
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>
a53c76d
to
46d92ab
Compare
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.