feat: allow user to provide client for OpenSearchVectorDatabase#139
feat: allow user to provide client for OpenSearchVectorDatabase#139HavenDV merged 2 commits intotryAGI:mainfrom dandeto:main
Conversation
WalkthroughThe changes update the client dependency in two OpenSearch classes. In the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant VectorDB as OpenSearchVectorDatabase
participant VectorCol as OpenSearchVectorCollection
participant IClient as IOpenSearchClient
User->>VectorDB: new(IClient client)
Note right of VectorDB: Sets _client field via dependency injection
User->>VectorCol: new(IClient client)
Note right of VectorCol: Injected client dependency for operations
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
|
I made two small commits. The first adds a constructor so that a user can pass in a preconfigured OpenSearchClient. This allows users to us other configurations instead of being forced to use simple authentication for OpenSearch.
The second commit simply changes all references to
OpenSearchClientto the interfaceIOpenSearchClientfor greater flexibility. If this is not desired for some reason, I can undo it.I am working on an application that would benefit from these changes.
Summary by CodeRabbit