Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
kwadhwa18 committed Aug 14, 2023
1 parent 3f601b5 commit 1dc11fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/langchain/langchain/document_loaders/rocksetdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def __init__(
self.paginator = QueryPaginator
self.request_model = QueryRequestSql

try:
self.client.set_application('langchain')
except AttributeError:
# ignore
pass

def load(self) -> List[Document]:
return list(self.lazy_load())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ def __init__(
self.message_uuid_method = message_uuid_method
self.sync = sync

try:
self.client.set_application('langchain')
except AttributeError:
# ignore
pass


if not self._collection_exists():
self._create_collection()
self._wait_until_collection_created()
Expand Down
6 changes: 6 additions & 0 deletions libs/langchain/langchain/vectorstores/rocksetdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ def __init__(
self._embedding_key = embedding_key
self._workspace = workspace

try:
self._client.set_application('langchain')
except AttributeError:
# ignore
pass

@property
def embeddings(self) -> Embeddings:
return self._embeddings
Expand Down

0 comments on commit 1dc11fc

Please sign in to comment.