Skip to content

Commit 66e6486

Browse files
anakin87sjrl
andauthored
feat: IBM Db2 - lazy connection + closing methods (#3664)
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
1 parent a1f2c11 commit 66e6486

4 files changed

Lines changed: 447 additions & 303 deletions

File tree

integrations/ibm_db/src/haystack_integrations/components/retrievers/ibm_db/embedding_retriever.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def run(
7676
)
7777
return {"documents": docs}
7878

79+
def close(self) -> None:
80+
"""
81+
Release the synchronous resources of the underlying Document Store.
82+
"""
83+
self.document_store.close()
84+
7985
def to_dict(self) -> dict[str, Any]:
8086
"""
8187
Serializes the component to a dictionary.

0 commit comments

Comments
 (0)