You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python-sdk/folders.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ All the core document operations available on the main Morphik client are also a
96
96
-`ingest_file` - Ingest a file into this folder
97
97
-`ingest_files` - Ingest multiple files into this folder
98
98
-`ingest_directory` - Ingest all files from a directory into this folder
99
-
-`retrieve_chunks` - Retrieve chunks matching a query from this folder
99
+
-`retrieve_chunks` - Retrieve chunks matching a query from this folder (supports [reverse image search](/python-sdk/retrieve_chunks#reverse-image-search))
100
100
-`retrieve_docs` - Retrieve documents matching a query from this folder
101
101
-`query` - Generate a completion using context from this folder (supports `llm_config` parameter for custom LLM configuration)
102
102
-`list_documents` - List all documents in this folder
-`k` (int, optional): Number of results. Defaults to 4.
42
44
-`min_score` (float, optional): Minimum similarity threshold. Defaults to 0.0.
43
45
-`use_colpali` (bool, optional): Whether to use ColPali-style embedding model to retrieve the chunks (only works for documents ingested with`use_colpali=True`). Defaults to True.
44
46
-`folder_name` (str| List[str], optional): Optional folder scope. Accepts a single folder name or a list of folder names.
45
47
-`padding` (int, optional): Number of additional chunks/pages to retrieve before and after matched chunks (ColPali only). Defaults to 0.
46
48
-`output_format` (str, optional): Controls how image chunks are returned. Set to `"url"` to receive presigned URLs; omit orset to `"base64"` (default) to receive base64 content.
@@ -140,3 +143,61 @@ The `FinalChunkResult` objects returned by this method have the following proper
140
143
- The `download_url` field may be populated for image chunks. When using `output_format="url"`, it will typically match `content`for those chunks.
141
144
142
145
Tip: To download the original raw filefor a document, use [`get_document_download_url`](./get_document_download_url).
146
+
147
+
## Reverse Image Search
148
+
149
+
You can search using an image instead of text by providing `query_image`with a base64-encoded image. This enables finding visually similar content in your documents.
Copy file name to clipboardExpand all lines: python-sdk/users.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ The UserScope class provides the same document operations as the main Morphik cl
90
90
-`ingest_file` - Ingest a file for this user
91
91
-`ingest_files` - Ingest multiple files for this user
92
92
-`ingest_directory` - Ingest all files from a directory for this user
93
-
-`retrieve_chunks` - Retrieve chunks matching a query from this user's documents
93
+
-`retrieve_chunks` - Retrieve chunks matching a query from this user's documents (supports [reverse image search](/python-sdk/retrieve_chunks#reverse-image-search))
94
94
-`retrieve_docs` - Retrieve documents matching a query from this user's documents
95
95
-`query` - Generate a completion using context from this user's documents (supports `llm_config` parameter for custom LLM configuration)
96
96
-`list_documents` - List all documents owned by this user
0 commit comments