graphlit-client 1.0.20250627003__py3-none-any.whl → 1.0.20250627004__py3-none-any.whl
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.
- graphlit_api/__init__.py +12 -0
- graphlit_api/client.py +27 -0
- graphlit_api/exceptions.py +1 -1
- graphlit_api/operations.py +27 -0
- graphlit_api/retrieve_view.py +38 -0
- {graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/METADATA +1 -1
- {graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/RECORD +10 -9
- {graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/WHEEL +0 -0
- {graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/licenses/LICENSE +0 -0
- {graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/top_level.txt +0 -0
graphlit_api/__init__.py
CHANGED
@@ -1931,6 +1931,7 @@ from .operations import (
|
|
1931
1931
|
QUERY_WORKFLOWS_GQL,
|
1932
1932
|
REMOVE_CONTENTS_FROM_COLLECTION_GQL,
|
1933
1933
|
RETRIEVE_SOURCES_GQL,
|
1934
|
+
RETRIEVE_VIEW_GQL,
|
1934
1935
|
REVISE_CONTENT_GQL,
|
1935
1936
|
REVISE_ENCODED_IMAGE_GQL,
|
1936
1937
|
REVISE_IMAGE_GQL,
|
@@ -2667,6 +2668,12 @@ from .retrieve_sources import (
|
|
2667
2668
|
RetrieveSourcesRetrieveSourcesResults,
|
2668
2669
|
RetrieveSourcesRetrieveSourcesResultsContent,
|
2669
2670
|
)
|
2671
|
+
from .retrieve_view import (
|
2672
|
+
RetrieveView,
|
2673
|
+
RetrieveViewRetrieveView,
|
2674
|
+
RetrieveViewRetrieveViewResults,
|
2675
|
+
RetrieveViewRetrieveViewResultsContent,
|
2676
|
+
)
|
2670
2677
|
from .revise_content import (
|
2671
2678
|
ReviseContent,
|
2672
2679
|
ReviseContentReviseContent,
|
@@ -5350,6 +5357,7 @@ __all__ = [
|
|
5350
5357
|
"QueryWorkflowsWorkflowsResultsStoragePolicy",
|
5351
5358
|
"REMOVE_CONTENTS_FROM_COLLECTION_GQL",
|
5352
5359
|
"RETRIEVE_SOURCES_GQL",
|
5360
|
+
"RETRIEVE_VIEW_GQL",
|
5353
5361
|
"REVISE_CONTENT_GQL",
|
5354
5362
|
"REVISE_ENCODED_IMAGE_GQL",
|
5355
5363
|
"REVISE_IMAGE_GQL",
|
@@ -5389,6 +5397,10 @@ __all__ = [
|
|
5389
5397
|
"RetrieveSourcesRetrieveSources",
|
5390
5398
|
"RetrieveSourcesRetrieveSourcesResults",
|
5391
5399
|
"RetrieveSourcesRetrieveSourcesResultsContent",
|
5400
|
+
"RetrieveView",
|
5401
|
+
"RetrieveViewRetrieveView",
|
5402
|
+
"RetrieveViewRetrieveViewResults",
|
5403
|
+
"RetrieveViewRetrieveViewResultsContent",
|
5392
5404
|
"ReviseContent",
|
5393
5405
|
"ReviseContentReviseContent",
|
5394
5406
|
"ReviseContentReviseContentConversation",
|
graphlit_api/client.py
CHANGED
@@ -612,6 +612,7 @@ from .operations import (
|
|
612
612
|
QUERY_WORKFLOWS_GQL,
|
613
613
|
REMOVE_CONTENTS_FROM_COLLECTION_GQL,
|
614
614
|
RETRIEVE_SOURCES_GQL,
|
615
|
+
RETRIEVE_VIEW_GQL,
|
615
616
|
REVISE_CONTENT_GQL,
|
616
617
|
REVISE_ENCODED_IMAGE_GQL,
|
617
618
|
REVISE_IMAGE_GQL,
|
@@ -722,6 +723,7 @@ from .query_views import QueryViews
|
|
722
723
|
from .query_workflows import QueryWorkflows
|
723
724
|
from .remove_contents_from_collection import RemoveContentsFromCollection
|
724
725
|
from .retrieve_sources import RetrieveSources
|
726
|
+
from .retrieve_view import RetrieveView
|
725
727
|
from .revise_content import ReviseContent
|
726
728
|
from .revise_encoded_image import ReviseEncodedImage
|
727
729
|
from .revise_image import ReviseImage
|
@@ -2357,6 +2359,31 @@ class Client(AsyncBaseClient):
|
|
2357
2359
|
data = self.get_data(response)
|
2358
2360
|
return RetrieveSources.model_validate(data)
|
2359
2361
|
|
2362
|
+
async def retrieve_view(
|
2363
|
+
self,
|
2364
|
+
prompt: str,
|
2365
|
+
id: str,
|
2366
|
+
retrieval_strategy: Union[Optional[RetrievalStrategyInput], UnsetType] = UNSET,
|
2367
|
+
reranking_strategy: Union[Optional[RerankingStrategyInput], UnsetType] = UNSET,
|
2368
|
+
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
2369
|
+
**kwargs: Any
|
2370
|
+
) -> RetrieveView:
|
2371
|
+
variables: Dict[str, object] = {
|
2372
|
+
"prompt": prompt,
|
2373
|
+
"id": id,
|
2374
|
+
"retrievalStrategy": retrieval_strategy,
|
2375
|
+
"rerankingStrategy": reranking_strategy,
|
2376
|
+
"correlationId": correlation_id,
|
2377
|
+
}
|
2378
|
+
response = await self.execute(
|
2379
|
+
query=RETRIEVE_VIEW_GQL,
|
2380
|
+
operation_name="RetrieveView",
|
2381
|
+
variables=variables,
|
2382
|
+
**kwargs
|
2383
|
+
)
|
2384
|
+
data = self.get_data(response)
|
2385
|
+
return RetrieveView.model_validate(data)
|
2386
|
+
|
2360
2387
|
async def revise_content(
|
2361
2388
|
self,
|
2362
2389
|
prompt: str,
|
graphlit_api/exceptions.py
CHANGED
@@ -15,7 +15,7 @@ class GraphQLClientHttpError(GraphQLClientError):
|
|
15
15
|
self.response = response
|
16
16
|
|
17
17
|
def __str__(self) -> str:
|
18
|
-
return f"HTTP status code: {self.status_code}"
|
18
|
+
return f"HTTP status code: {self.status_code}\n{self.response.text}"
|
19
19
|
|
20
20
|
|
21
21
|
class GraphQLClientInvalidResponseError(GraphQLClientError):
|
graphlit_api/operations.py
CHANGED
@@ -273,6 +273,7 @@ __all__ = [
|
|
273
273
|
"QUERY_WORKFLOWS_GQL",
|
274
274
|
"REMOVE_CONTENTS_FROM_COLLECTION_GQL",
|
275
275
|
"RETRIEVE_SOURCES_GQL",
|
276
|
+
"RETRIEVE_VIEW_GQL",
|
276
277
|
"REVISE_CONTENT_GQL",
|
277
278
|
"REVISE_ENCODED_IMAGE_GQL",
|
278
279
|
"REVISE_IMAGE_GQL",
|
@@ -5942,6 +5943,32 @@ mutation RetrieveSources($prompt: String!, $filter: ContentFilter, $augmentedFil
|
|
5942
5943
|
}
|
5943
5944
|
"""
|
5944
5945
|
|
5946
|
+
RETRIEVE_VIEW_GQL = """
|
5947
|
+
mutation RetrieveView($prompt: String!, $id: ID!, $retrievalStrategy: RetrievalStrategyInput, $rerankingStrategy: RerankingStrategyInput, $correlationId: String) {
|
5948
|
+
retrieveView(
|
5949
|
+
prompt: $prompt
|
5950
|
+
id: $id
|
5951
|
+
retrievalStrategy: $retrievalStrategy
|
5952
|
+
rerankingStrategy: $rerankingStrategy
|
5953
|
+
correlationId: $correlationId
|
5954
|
+
) {
|
5955
|
+
results {
|
5956
|
+
type
|
5957
|
+
content {
|
5958
|
+
id
|
5959
|
+
}
|
5960
|
+
text
|
5961
|
+
metadata
|
5962
|
+
relevance
|
5963
|
+
startTime
|
5964
|
+
endTime
|
5965
|
+
pageNumber
|
5966
|
+
frameNumber
|
5967
|
+
}
|
5968
|
+
}
|
5969
|
+
}
|
5970
|
+
"""
|
5971
|
+
|
5945
5972
|
REVISE_CONTENT_GQL = """
|
5946
5973
|
mutation ReviseContent($prompt: String!, $content: EntityReferenceInput!, $id: ID, $specification: EntityReferenceInput, $correlationId: String) {
|
5947
5974
|
reviseContent(
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: ./documents
|
3
|
+
|
4
|
+
from typing import Any, List, Optional
|
5
|
+
|
6
|
+
from pydantic import Field
|
7
|
+
|
8
|
+
from .base_model import BaseModel
|
9
|
+
from .enums import ContentSourceTypes
|
10
|
+
|
11
|
+
|
12
|
+
class RetrieveView(BaseModel):
|
13
|
+
retrieve_view: Optional["RetrieveViewRetrieveView"] = Field(alias="retrieveView")
|
14
|
+
|
15
|
+
|
16
|
+
class RetrieveViewRetrieveView(BaseModel):
|
17
|
+
results: Optional[List[Optional["RetrieveViewRetrieveViewResults"]]]
|
18
|
+
|
19
|
+
|
20
|
+
class RetrieveViewRetrieveViewResults(BaseModel):
|
21
|
+
type: Optional[ContentSourceTypes]
|
22
|
+
content: "RetrieveViewRetrieveViewResultsContent"
|
23
|
+
text: str
|
24
|
+
metadata: Optional[str]
|
25
|
+
relevance: float
|
26
|
+
start_time: Optional[Any] = Field(alias="startTime")
|
27
|
+
end_time: Optional[Any] = Field(alias="endTime")
|
28
|
+
page_number: Optional[int] = Field(alias="pageNumber")
|
29
|
+
frame_number: Optional[int] = Field(alias="frameNumber")
|
30
|
+
|
31
|
+
|
32
|
+
class RetrieveViewRetrieveViewResultsContent(BaseModel):
|
33
|
+
id: str
|
34
|
+
|
35
|
+
|
36
|
+
RetrieveView.model_rebuild()
|
37
|
+
RetrieveViewRetrieveView.model_rebuild()
|
38
|
+
RetrieveViewRetrieveViewResults.model_rebuild()
|
{graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/RECORD
RENAMED
@@ -1,13 +1,13 @@
|
|
1
1
|
graphlit/__init__.py,sha256=4AyigTlFQWP40lnaaQ1H1iRT_B1hIXW9bgPanbwmTvs,32
|
2
2
|
graphlit/graphlit.py,sha256=g2znIWEb6fIwMKGm5G_BY4VHdaZi6hLO4Y6FdBjNesM,2389
|
3
|
-
graphlit_api/__init__.py,sha256
|
3
|
+
graphlit_api/__init__.py,sha256=-dQunL4AlD7sqgLs6TPy1qqOQRAmqQ2K8L5iBSXV7yU,236339
|
4
4
|
graphlit_api/add_contents_to_collections.py,sha256=K7tNpLn8-lRVaVT39iKr-VtCKRWVONyL_h6cC0L606Y,888
|
5
5
|
graphlit_api/ask_graphlit.py,sha256=U2grdqvzeFMjTzM5ACTEXV2Rk-R_WAwdslzWAtZb6i8,6489
|
6
6
|
graphlit_api/async_base_client.py,sha256=v0KUVwe2_RIQa8Mn7l_yD5McUe7B03vhclJ9SP4XGgw,12578
|
7
7
|
graphlit_api/base_model.py,sha256=o2d-DixASFCGztr3rTiGX0AwgFu7Awr7EgD70FI8a-I,620
|
8
8
|
graphlit_api/branch_conversation.py,sha256=iU3IsoM526AHUHjX0ODAyOPTpyS9N5RqSdytoAOmKbU,539
|
9
9
|
graphlit_api/clear_conversation.py,sha256=5GOmc2wfupV-7EHWyi3v6LA0pSVLtFNCzxPJm42Dp6Y,531
|
10
|
-
graphlit_api/client.py,sha256=
|
10
|
+
graphlit_api/client.py,sha256=aNCF1vFpcVto9aACCb4cXAdMGsmzPEMRr36mPiS9H2A,220471
|
11
11
|
graphlit_api/close_conversation.py,sha256=HcIUUiNf7hnuLZ7Fy6IcgfuHMSyWyJ7uOEy1EEETy_4,531
|
12
12
|
graphlit_api/complete_conversation.py,sha256=39v86YLrm9IGQVcsRHUyxoTkiT1sNoVPQZzim5FxSZo,16844
|
13
13
|
graphlit_api/continue_conversation.py,sha256=Ba_ufN-4Ji6ZjznlilvS85xxkdV5JGpnuEQUU-qGXBk,16844
|
@@ -167,7 +167,7 @@ graphlit_api/enable_alert.py,sha256=KctjIbnyZDoDynbuD6IR2fHuNHKAtM07VVgKzTL479g,
|
|
167
167
|
graphlit_api/enable_feed.py,sha256=BhtLlEGV9p8ICodywdN9-sASWSX3w_4c3zYtf-bdaGE,390
|
168
168
|
graphlit_api/enable_user.py,sha256=_0rQnpwVYhBrRcnpfqrKTOiANgOMe-ibUAHmS-XC0qo,390
|
169
169
|
graphlit_api/enums.py,sha256=HzAu_qbW_mtz7OR-BW0_I_7N4R06NN05VjbZH-FjOdA,30399
|
170
|
-
graphlit_api/exceptions.py,sha256=
|
170
|
+
graphlit_api/exceptions.py,sha256=s0ECCqA83fhlv5GqIpT-fNFIZ7sRABG23Wj7DcEl4X0,2433
|
171
171
|
graphlit_api/extract_contents.py,sha256=qsSy8UOJuqsUnCcuduaNPyaK2mZk_1noECT0Jgx3zRA,961
|
172
172
|
graphlit_api/extract_text.py,sha256=jfkL6ep5wzXeoelZ5nRwNRT0t7oDCUt1xrigqkMj-7M,887
|
173
173
|
graphlit_api/feed_exists.py,sha256=NlvWhqVaV-coIV_orR-XsaXhG0Gll3bPVS3tPF0zEt0,351
|
@@ -219,7 +219,7 @@ graphlit_api/lookup_contents.py,sha256=_s9tmHSm6WNIEKQ4J2JEdSsGg30HKhf3CxoiPMwZJ
|
|
219
219
|
graphlit_api/lookup_credits.py,sha256=WsV7fGbg29WWOjPRIaL2bnhISGsb0SqUlQxL7rBfNTo,1464
|
220
220
|
graphlit_api/lookup_usage.py,sha256=D_cbO0KmXDqRYqQIhNwWXNFGjwNLEy2_5aVa-SYgRzw,1711
|
221
221
|
graphlit_api/map_web.py,sha256=2rp4jFD1vDqcQ98mCVTeC0RzPqQxmmcRvHNRl8HJfFA,346
|
222
|
-
graphlit_api/operations.py,sha256=
|
222
|
+
graphlit_api/operations.py,sha256=BWZp0weuHczyL3Ht0c-fgM98jhfC2BvWko-WbmYn36w,224411
|
223
223
|
graphlit_api/prompt.py,sha256=jBlM3ywGnbVPYSBHMDPAy5ZlDDtndRsHnV7twcwLX1g,6203
|
224
224
|
graphlit_api/prompt_conversation.py,sha256=JMiDfxFaixz63wXcT-h948c5x2Uc6PgB3D7wORltkhU,16458
|
225
225
|
graphlit_api/prompt_specifications.py,sha256=GFLRlyp5pISfB0PVMw3RPCwGvqkA3qI5M2NiXXu2aT0,7090
|
@@ -279,6 +279,7 @@ graphlit_api/query_views.py,sha256=nqT3g0SnkMHAYLS8h51qRyXdn_XSCvgouvx2KrJ-IM8,1
|
|
279
279
|
graphlit_api/query_workflows.py,sha256=xAj1xe75F9j1cf1Xkof2XF2CkCIV9QKcQSojXP6i9Qc,17360
|
280
280
|
graphlit_api/remove_contents_from_collection.py,sha256=LnUL43UNNIPY-DBn-vg0Jx89tfuEBpctGgdQ5U75UlU,950
|
281
281
|
graphlit_api/retrieve_sources.py,sha256=MLtgZ7_jKNGjf5LKFqJy-KyQESo_KvNeV_gjsfyV2XQ,1134
|
282
|
+
graphlit_api/retrieve_view.py,sha256=1-0bM2mLCfBAtNYGrujDSJLsGyiiau7jbCz1SYzZBPQ,1060
|
282
283
|
graphlit_api/revise_content.py,sha256=sy-x1P_oMY2BVOJafB2X9ApPXKPjFS25nrwRJtzWMo8,6605
|
283
284
|
graphlit_api/revise_encoded_image.py,sha256=HvA0N23IL_6kUGTtdlm575Nh-AWZzYQUV9fkPHzM23Q,6894
|
284
285
|
graphlit_api/revise_image.py,sha256=WWLTnKXDNJ9rZHV3PKw4c2C_TRCTrQzKU0ZEJFNQrew,6489
|
@@ -329,8 +330,8 @@ graphlit_api/upsert_view.py,sha256=heJie4ClpyUbADUdtHvZn94Vppsf4xLmfHk9dVPLzi0,1
|
|
329
330
|
graphlit_api/upsert_workflow.py,sha256=BWzMvOF7kQWs-uLuet5jCletHq8KGD7XK-ZwWpHM5MU,16804
|
330
331
|
graphlit_api/view_exists.py,sha256=OSYvGogCDHxbHfIjcjgKBSmCoIE4gOEjnPgiS5xX_yE,351
|
331
332
|
graphlit_api/workflow_exists.py,sha256=1XVcqCW_KZ3BwUFx08lwqQdf1ZpJ6Vmi8jBqcrMqYRI,397
|
332
|
-
graphlit_client-1.0.
|
333
|
-
graphlit_client-1.0.
|
334
|
-
graphlit_client-1.0.
|
335
|
-
graphlit_client-1.0.
|
336
|
-
graphlit_client-1.0.
|
333
|
+
graphlit_client-1.0.20250627004.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
|
334
|
+
graphlit_client-1.0.20250627004.dist-info/METADATA,sha256=7HpjQxf7DieuJOpyGrYlU-yi2sJIfnvquhRmAKW_z-U,3408
|
335
|
+
graphlit_client-1.0.20250627004.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
336
|
+
graphlit_client-1.0.20250627004.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
|
337
|
+
graphlit_client-1.0.20250627004.dist-info/RECORD,,
|
{graphlit_client-1.0.20250627003.dist-info → graphlit_client-1.0.20250627004.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|