We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed4fe6 commit 1dd4525Copy full SHA for 1dd4525
src/unstract/sdk/__init__.py
@@ -1,4 +1,4 @@
1
-__version__ = "0.18.0"
+__version__ = "0.18.1"
2
3
4
def get_sdk_version():
src/unstract/sdk/index.py
@@ -58,9 +58,18 @@ def get_text_from_index(
58
try:
59
self.tool.stream_log(f">>> Querying {vector_db}...")
60
self.tool.stream_log(f">>> {doc_id}")
61
+ doc_id_eq_filter = MetadataFilter.from_dict(
62
+ {
63
+ "key": "doc_id",
64
+ "operator": FilterOperator.EQ,
65
+ "value": doc_id,
66
+ }
67
+ )
68
+ filters = MetadataFilters(filters=[doc_id_eq_filter])
69
q = VectorStoreQuery(
70
query_embedding=embedding_li.get_query_embedding(" "),
71
doc_ids=[doc_id],
72
+ filters=filters,
73
similarity_top_k=10000,
74
)
75
except Exception as e:
0 commit comments