Skip to content

Commit 3840e8f

Browse files
authored
Merge pull request #109 from UiPath/chore/folder-support-vectorstore
chore: vectorstore folder support
2 parents fd11eeb + 20336ba commit 3840e8f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.111"
3+
version = "0.0.112"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_langchain/vectorstores/context_grounding_vectorstore.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class ContextGroundingVectorStore(VectorStore):
4444
def __init__(
4545
self,
4646
index_name: str,
47+
folder_path: Optional[str] = None,
4748
uipath_sdk: Optional[UiPath] = None,
4849
):
4950
"""Initialize the ContextGroundingVectorStore.
@@ -53,6 +54,7 @@ def __init__(
5354
uipath_sdk: Optional SDK instance to use. If not provided, a new instance will be created.
5455
"""
5556
self.index_name = index_name
57+
self.folder_path = folder_path
5658
self.sdk = uipath_sdk or UiPath()
5759

5860
def similarity_search_with_score(
@@ -73,6 +75,7 @@ def similarity_search_with_score(
7375
name=self.index_name,
7476
query=query,
7577
number_of_results=k,
78+
folder_path=self.folder_path,
7679
)
7780

7881
# Convert the results to Documents with scores
@@ -142,6 +145,7 @@ async def asimilarity_search_with_score(
142145
name=self.index_name,
143146
query=query,
144147
number_of_results=k,
148+
folder_path=self.folder_path,
145149
)
146150

147151
# Convert the results to Documents with scores

0 commit comments

Comments
 (0)