groundx 2.3.5__tar.gz → 2.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {groundx-2.3.5 → groundx-2.3.7}/PKG-INFO +1 -1
- {groundx-2.3.5 → groundx-2.3.7}/pyproject.toml +1 -1
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/__init__.py +2 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/client_wrapper.py +2 -2
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/ingest.py +3 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/__init__.py +2 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document.py +5 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/search_result_item.py +2 -0
- groundx-2.3.7/src/groundx/types/search_result_item_pages_item.py +41 -0
- {groundx-2.3.5 → groundx-2.3.7}/LICENSE +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/README.md +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/buckets/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/buckets/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/buckets/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/api_error.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/datetime_utils.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/file.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/force_multipart.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/http_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/http_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/jsonable_encoder.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/pydantic_utilities.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/query_encoder.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/remove_none_from_dict.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/request_options.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/core/serialization.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/csv_splitter.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/customer/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/customer/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/customer/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/documents/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/documents/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/documents/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/environment.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/errors/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/errors/bad_request_error.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/errors/unauthorized_error.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/groups/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/groups/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/groups/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/health/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/health/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/health/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/py.typed +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/search/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/search/client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/search/raw_client.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/search/types/__init__.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/search/types/search_content_request_id.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bounding_box_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bucket_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bucket_list_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bucket_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bucket_update_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/bucket_update_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/customer_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/customer_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_list_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_local_ingest_request.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_lookup_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/document_type.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/group_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/group_list_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/group_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/health_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/health_response_health.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/health_service.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/health_service_status.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_local_document.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_local_document_metadata.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_remote_document.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_light.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_progress.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_progress_cancelled.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_progress_complete.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_progress_errors.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/ingest_status_progress_processing.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/message_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/meter_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/process_level.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/processes_status_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/processing_status.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/search_response.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/search_response_search.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/sort.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/sort_order.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/subscription_detail.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/subscription_detail_meters.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/types/website_source.py +0 -0
- {groundx-2.3.5 → groundx-2.3.7}/src/groundx/version.py +0 -0
@@ -44,6 +44,7 @@ from .types import (
|
|
44
44
|
SearchResponse,
|
45
45
|
SearchResponseSearch,
|
46
46
|
SearchResultItem,
|
47
|
+
SearchResultItemPagesItem,
|
47
48
|
Sort,
|
48
49
|
SortOrder,
|
49
50
|
SubscriptionDetail,
|
@@ -104,6 +105,7 @@ __all__ = [
|
|
104
105
|
"SearchResponse",
|
105
106
|
"SearchResponseSearch",
|
106
107
|
"SearchResultItem",
|
108
|
+
"SearchResultItemPagesItem",
|
107
109
|
"Sort",
|
108
110
|
"SortOrder",
|
109
111
|
"SubscriptionDetail",
|
@@ -14,10 +14,10 @@ class BaseClientWrapper:
|
|
14
14
|
|
15
15
|
def get_headers(self) -> typing.Dict[str, str]:
|
16
16
|
headers: typing.Dict[str, str] = {
|
17
|
-
"User-Agent": "groundx/2.3.
|
17
|
+
"User-Agent": "groundx/2.3.7",
|
18
18
|
"X-Fern-Language": "Python",
|
19
19
|
"X-Fern-SDK-Name": "groundx",
|
20
|
-
"X-Fern-SDK-Version": "2.3.
|
20
|
+
"X-Fern-SDK-Version": "2.3.7",
|
21
21
|
}
|
22
22
|
headers["X-API-Key"] = self.api_key
|
23
23
|
return headers
|
@@ -111,6 +111,7 @@ def prep_documents(
|
|
111
111
|
bucket_id=document.bucket_id,
|
112
112
|
file_name=document.file_name,
|
113
113
|
file_type=document.file_type,
|
114
|
+
filter=document.filter,
|
114
115
|
process_level=document.process_level,
|
115
116
|
search_data=document.search_data,
|
116
117
|
source_url=document.file_path,
|
@@ -431,6 +432,7 @@ class GroundX(GroundXBase):
|
|
431
432
|
bucket_id=d.bucket_id,
|
432
433
|
file_name=fn,
|
433
434
|
file_type=ft,
|
435
|
+
filter=d.filter,
|
434
436
|
process_level=d.process_level,
|
435
437
|
search_data=d.search_data,
|
436
438
|
source_url=url,
|
@@ -610,6 +612,7 @@ class AsyncGroundX(AsyncGroundXBase):
|
|
610
612
|
bucket_id=d.bucket_id,
|
611
613
|
file_name=fn,
|
612
614
|
file_type=ft,
|
615
|
+
filter=d.filter,
|
613
616
|
process_level=d.process_level,
|
614
617
|
search_data=d.search_data,
|
615
618
|
source_url=url,
|
@@ -43,6 +43,7 @@ from .processing_status import ProcessingStatus
|
|
43
43
|
from .search_response import SearchResponse
|
44
44
|
from .search_response_search import SearchResponseSearch
|
45
45
|
from .search_result_item import SearchResultItem
|
46
|
+
from .search_result_item_pages_item import SearchResultItemPagesItem
|
46
47
|
from .sort import Sort
|
47
48
|
from .sort_order import SortOrder
|
48
49
|
from .subscription_detail import SubscriptionDetail
|
@@ -91,6 +92,7 @@ __all__ = [
|
|
91
92
|
"SearchResponse",
|
92
93
|
"SearchResponseSearch",
|
93
94
|
"SearchResultItem",
|
95
|
+
"SearchResultItemPagesItem",
|
94
96
|
"Sort",
|
95
97
|
"SortOrder",
|
96
98
|
"SubscriptionDetail",
|
@@ -29,6 +29,11 @@ class Document(UniversalBaseModel):
|
|
29
29
|
"""
|
30
30
|
|
31
31
|
file_type: typing_extensions.Annotated[typing.Optional[DocumentType], FieldMetadata(alias="fileType")] = None
|
32
|
+
filter: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
33
|
+
"""
|
34
|
+
A dictionary of key-value pairs that can be used to pre-filter documents prior to a search.
|
35
|
+
"""
|
36
|
+
|
32
37
|
process_level: typing_extensions.Annotated[typing.Optional[ProcessLevel], FieldMetadata(alias="processLevel")] = (
|
33
38
|
None
|
34
39
|
)
|
@@ -7,6 +7,7 @@ import typing_extensions
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
8
8
|
from ..core.serialization import FieldMetadata
|
9
9
|
from .bounding_box_detail import BoundingBoxDetail
|
10
|
+
from .search_result_item_pages_item import SearchResultItemPagesItem
|
10
11
|
|
11
12
|
|
12
13
|
class SearchResultItem(UniversalBaseModel):
|
@@ -55,6 +56,7 @@ class SearchResultItem(UniversalBaseModel):
|
|
55
56
|
page_images: typing_extensions.Annotated[typing.Optional[typing.List[str]], FieldMetadata(alias="pageImages")] = (
|
56
57
|
None
|
57
58
|
)
|
59
|
+
pages: typing.Optional[typing.List[SearchResultItemPagesItem]] = None
|
58
60
|
score: typing.Optional[float] = pydantic.Field(default=None)
|
59
61
|
"""
|
60
62
|
Confidence score in the search result
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
|
5
|
+
import pydantic
|
6
|
+
import typing_extensions
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
8
|
+
from ..core.serialization import FieldMetadata
|
9
|
+
|
10
|
+
|
11
|
+
class SearchResultItemPagesItem(UniversalBaseModel):
|
12
|
+
height: typing.Optional[float] = pydantic.Field(default=None)
|
13
|
+
"""
|
14
|
+
The height of the page image
|
15
|
+
"""
|
16
|
+
|
17
|
+
image_url: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="imageUrl")] = pydantic.Field(
|
18
|
+
default=None
|
19
|
+
)
|
20
|
+
"""
|
21
|
+
A jpg of the page the chunk appears on
|
22
|
+
"""
|
23
|
+
|
24
|
+
number: typing.Optional[float] = pydantic.Field(default=None)
|
25
|
+
"""
|
26
|
+
The page number
|
27
|
+
"""
|
28
|
+
|
29
|
+
width: typing.Optional[float] = pydantic.Field(default=None)
|
30
|
+
"""
|
31
|
+
The width of the page image
|
32
|
+
"""
|
33
|
+
|
34
|
+
if IS_PYDANTIC_V2:
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
36
|
+
else:
|
37
|
+
|
38
|
+
class Config:
|
39
|
+
frozen = True
|
40
|
+
smart_union = True
|
41
|
+
extra = pydantic.Extra.allow
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|