scale-gp-beta 0.1.0a42__py3-none-any.whl → 0.1.0a43__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.
- scale_gp_beta/_base_client.py +5 -2
- scale_gp_beta/_client.py +38 -0
- scale_gp_beta/_compat.py +3 -3
- scale_gp_beta/_utils/_json.py +35 -0
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +14 -0
- scale_gp_beta/resources/vector_stores.py +1314 -0
- scale_gp_beta/types/__init__.py +15 -0
- scale_gp_beta/types/vector_store.py +42 -0
- scale_gp_beta/types/vector_store_configure_params.py +16 -0
- scale_gp_beta/types/vector_store_count_params.py +13 -0
- scale_gp_beta/types/vector_store_count_response.py +12 -0
- scale_gp_beta/types/vector_store_create_params.py +35 -0
- scale_gp_beta/types/vector_store_delete_params.py +18 -0
- scale_gp_beta/types/vector_store_delete_response.py +12 -0
- scale_gp_beta/types/vector_store_drop_response.py +12 -0
- scale_gp_beta/types/vector_store_list_params.py +19 -0
- scale_gp_beta/types/vector_store_query_params.py +34 -0
- scale_gp_beta/types/vector_store_query_response.py +61 -0
- scale_gp_beta/types/vector_store_upsert_params.py +29 -0
- scale_gp_beta/types/vector_store_upsert_response.py +23 -0
- scale_gp_beta/types/vector_store_vectors_params.py +21 -0
- scale_gp_beta/types/vector_store_vectors_response.py +36 -0
- {scale_gp_beta-0.1.0a42.dist-info → scale_gp_beta-0.1.0a43.dist-info}/METADATA +3 -3
- {scale_gp_beta-0.1.0a42.dist-info → scale_gp_beta-0.1.0a43.dist-info}/RECORD +27 -10
- {scale_gp_beta-0.1.0a42.dist-info → scale_gp_beta-0.1.0a43.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a42.dist-info → scale_gp_beta-0.1.0a43.dist-info}/licenses/LICENSE +0 -0
scale_gp_beta/types/__init__.py
CHANGED
|
@@ -20,6 +20,7 @@ from .span_status import SpanStatus as SpanStatus
|
|
|
20
20
|
from .dataset_item import DatasetItem as DatasetItem
|
|
21
21
|
from .item_locator import ItemLocator as ItemLocator
|
|
22
22
|
from .stream_chunk import StreamChunk as StreamChunk
|
|
23
|
+
from .vector_store import VectorStore as VectorStore
|
|
23
24
|
from .approval_status import ApprovalStatus as ApprovalStatus
|
|
24
25
|
from .assessment_type import AssessmentType as AssessmentType
|
|
25
26
|
from .component_param import ComponentParam as ComponentParam
|
|
@@ -71,18 +72,32 @@ from .evaluation_update_params import EvaluationUpdateParams as EvaluationUpdate
|
|
|
71
72
|
from .inference_response_chunk import InferenceResponseChunk as InferenceResponseChunk
|
|
72
73
|
from .response_create_response import ResponseCreateResponse as ResponseCreateResponse
|
|
73
74
|
from .span_upsert_batch_params import SpanUpsertBatchParams as SpanUpsertBatchParams
|
|
75
|
+
from .vector_store_list_params import VectorStoreListParams as VectorStoreListParams
|
|
74
76
|
from .inference_create_response import InferenceCreateResponse as InferenceCreateResponse
|
|
77
|
+
from .vector_store_count_params import VectorStoreCountParams as VectorStoreCountParams
|
|
78
|
+
from .vector_store_query_params import VectorStoreQueryParams as VectorStoreQueryParams
|
|
75
79
|
from .credential_delete_response import CredentialDeleteResponse as CredentialDeleteResponse
|
|
76
80
|
from .dataset_item_update_params import DatasetItemUpdateParams as DatasetItemUpdateParams
|
|
77
81
|
from .evaluation_retrieve_params import EvaluationRetrieveParams as EvaluationRetrieveParams
|
|
78
82
|
from .span_upsert_batch_response import SpanUpsertBatchResponse as SpanUpsertBatchResponse
|
|
83
|
+
from .vector_store_create_params import VectorStoreCreateParams as VectorStoreCreateParams
|
|
84
|
+
from .vector_store_delete_params import VectorStoreDeleteParams as VectorStoreDeleteParams
|
|
85
|
+
from .vector_store_drop_response import VectorStoreDropResponse as VectorStoreDropResponse
|
|
86
|
+
from .vector_store_upsert_params import VectorStoreUpsertParams as VectorStoreUpsertParams
|
|
79
87
|
from .evaluation_item_list_params import EvaluationItemListParams as EvaluationItemListParams
|
|
80
88
|
from .span_assessment_list_params import SpanAssessmentListParams as SpanAssessmentListParams
|
|
89
|
+
from .vector_store_count_response import VectorStoreCountResponse as VectorStoreCountResponse
|
|
90
|
+
from .vector_store_query_response import VectorStoreQueryResponse as VectorStoreQueryResponse
|
|
91
|
+
from .vector_store_vectors_params import VectorStoreVectorsParams as VectorStoreVectorsParams
|
|
81
92
|
from .dataset_item_delete_response import DatasetItemDeleteResponse as DatasetItemDeleteResponse
|
|
82
93
|
from .dataset_item_retrieve_params import DatasetItemRetrieveParams as DatasetItemRetrieveParams
|
|
94
|
+
from .vector_store_delete_response import VectorStoreDeleteResponse as VectorStoreDeleteResponse
|
|
95
|
+
from .vector_store_upsert_response import VectorStoreUpsertResponse as VectorStoreUpsertResponse
|
|
83
96
|
from .file_import_from_cloud_params import FileImportFromCloudParams as FileImportFromCloudParams
|
|
84
97
|
from .span_assessment_create_params import SpanAssessmentCreateParams as SpanAssessmentCreateParams
|
|
85
98
|
from .span_assessment_update_params import SpanAssessmentUpdateParams as SpanAssessmentUpdateParams
|
|
99
|
+
from .vector_store_configure_params import VectorStoreConfigureParams as VectorStoreConfigureParams
|
|
100
|
+
from .vector_store_vectors_response import VectorStoreVectorsResponse as VectorStoreVectorsResponse
|
|
86
101
|
from .evaluation_item_retrieve_params import EvaluationItemRetrieveParams as EvaluationItemRetrieveParams
|
|
87
102
|
from .file_import_from_cloud_response import FileImportFromCloudResponse as FileImportFromCloudResponse
|
|
88
103
|
from .span_assessment_delete_response import SpanAssessmentDeleteResponse as SpanAssessmentDeleteResponse
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["VectorStore"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class VectorStore(BaseModel):
|
|
13
|
+
"""Response model for vector store operations."""
|
|
14
|
+
|
|
15
|
+
created_at: datetime
|
|
16
|
+
"""Timestamp of creation"""
|
|
17
|
+
|
|
18
|
+
embedding_dimensions: int
|
|
19
|
+
"""Dimension size of the embeddings"""
|
|
20
|
+
|
|
21
|
+
embedding_model: Literal[
|
|
22
|
+
"sentence-transformers/all-MiniLM-L12-v2",
|
|
23
|
+
"sentence-transformers/all-mpnet-base-v2",
|
|
24
|
+
"sentence-transformers/multi-qa-distilbert-cos-v1",
|
|
25
|
+
"sentence-transformers/paraphrase-multilingual-mpnet-base-v2",
|
|
26
|
+
"openai/text-embedding-ada-002",
|
|
27
|
+
"openai/text-embedding-3-small",
|
|
28
|
+
"openai/text-embedding-3-large",
|
|
29
|
+
"embed-english-v3.0",
|
|
30
|
+
"embed-english-light-v3.0",
|
|
31
|
+
"embed-multilingual-v3.0",
|
|
32
|
+
]
|
|
33
|
+
"""The embedding model"""
|
|
34
|
+
|
|
35
|
+
name: str
|
|
36
|
+
"""The name of the vector store"""
|
|
37
|
+
|
|
38
|
+
updated_at: datetime
|
|
39
|
+
"""Timestamp of last update"""
|
|
40
|
+
|
|
41
|
+
indexed_metadata_fields: Optional[Dict[str, Literal["string", "number", "boolean", "object", "list"]]] = None
|
|
42
|
+
"""Dictionary mapping metadata field names to their types"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VectorStoreConfigureParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VectorStoreConfigureParams(TypedDict, total=False):
|
|
12
|
+
indexed_metadata_fields: Required[Dict[str, Literal["string", "number", "boolean", "object", "list"]]]
|
|
13
|
+
"""Dictionary mapping metadata field names to their types.
|
|
14
|
+
|
|
15
|
+
Only STRING, NUMBER, and BOOLEAN types can be indexed.
|
|
16
|
+
"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VectorStoreCountParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VectorStoreCountParams(TypedDict, total=False):
|
|
12
|
+
filter: Dict[str, object]
|
|
13
|
+
"""Metadata filter expression"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["VectorStoreCountResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VectorStoreCountResponse(BaseModel):
|
|
9
|
+
"""Response for count operation."""
|
|
10
|
+
|
|
11
|
+
count: int
|
|
12
|
+
"""Number of documents matching the criteria"""
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VectorStoreCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VectorStoreCreateParams(TypedDict, total=False):
|
|
12
|
+
embedding_model: Required[
|
|
13
|
+
Literal[
|
|
14
|
+
"sentence-transformers/all-MiniLM-L12-v2",
|
|
15
|
+
"sentence-transformers/all-mpnet-base-v2",
|
|
16
|
+
"sentence-transformers/multi-qa-distilbert-cos-v1",
|
|
17
|
+
"sentence-transformers/paraphrase-multilingual-mpnet-base-v2",
|
|
18
|
+
"openai/text-embedding-ada-002",
|
|
19
|
+
"openai/text-embedding-3-small",
|
|
20
|
+
"openai/text-embedding-3-large",
|
|
21
|
+
"embed-english-v3.0",
|
|
22
|
+
"embed-english-light-v3.0",
|
|
23
|
+
"embed-multilingual-v3.0",
|
|
24
|
+
]
|
|
25
|
+
]
|
|
26
|
+
"""The embedding model to use"""
|
|
27
|
+
|
|
28
|
+
name: Required[str]
|
|
29
|
+
"""A unique name for the vector store within the account"""
|
|
30
|
+
|
|
31
|
+
indexed_metadata_fields: Dict[str, Literal["string", "number", "boolean", "object", "list"]]
|
|
32
|
+
"""Dictionary mapping metadata field names to their types for efficient filtering.
|
|
33
|
+
|
|
34
|
+
Only STRING, NUMBER, and BOOLEAN types can be indexed.
|
|
35
|
+
"""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
|
|
10
|
+
__all__ = ["VectorStoreDeleteParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class VectorStoreDeleteParams(TypedDict, total=False):
|
|
14
|
+
filter: Dict[str, object]
|
|
15
|
+
"""Metadata filter expression for deletion"""
|
|
16
|
+
|
|
17
|
+
ids: SequenceNotStr[str]
|
|
18
|
+
"""Array of document IDs to delete"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["VectorStoreDeleteResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VectorStoreDeleteResponse(BaseModel):
|
|
9
|
+
"""Response for delete operation."""
|
|
10
|
+
|
|
11
|
+
deleted_count: int
|
|
12
|
+
"""Number of documents deleted"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["VectorStoreDropResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VectorStoreDropResponse(BaseModel):
|
|
9
|
+
"""Response for vector store deletion."""
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
"""The name of the deleted vector store"""
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["VectorStoreListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VectorStoreListParams(TypedDict, total=False):
|
|
11
|
+
ending_before: str
|
|
12
|
+
|
|
13
|
+
limit: int
|
|
14
|
+
|
|
15
|
+
sort_by: str
|
|
16
|
+
|
|
17
|
+
sort_order: Literal["asc", "desc"]
|
|
18
|
+
|
|
19
|
+
starting_after: str
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VectorStoreQueryParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VectorStoreQueryParams(TypedDict, total=False):
|
|
12
|
+
text: Required[str]
|
|
13
|
+
"""Text query for automatic embedding (required)"""
|
|
14
|
+
|
|
15
|
+
filter: Dict[str, object]
|
|
16
|
+
"""Metadata filter expression"""
|
|
17
|
+
|
|
18
|
+
include_vectors: bool
|
|
19
|
+
"""Include embedding vectors in response"""
|
|
20
|
+
|
|
21
|
+
query_type: Literal["semantic", "lexical", "hybrid"]
|
|
22
|
+
"""Query type: semantic, lexical, or hybrid"""
|
|
23
|
+
|
|
24
|
+
rerank: bool
|
|
25
|
+
"""Enable reranking of search results"""
|
|
26
|
+
|
|
27
|
+
rerank_model: str
|
|
28
|
+
"""Reranking model to use (uses system default if not specified)"""
|
|
29
|
+
|
|
30
|
+
rerank_top_n: int
|
|
31
|
+
"""Number of results after reranking (defaults to top_k)"""
|
|
32
|
+
|
|
33
|
+
top_k: int
|
|
34
|
+
"""Number of search results to return"""
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["VectorStoreQueryResponse", "Metadata", "Vector"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Metadata(BaseModel):
|
|
11
|
+
"""Query execution metadata"""
|
|
12
|
+
|
|
13
|
+
embedding_model: str
|
|
14
|
+
"""Embedding model used for query vectorization"""
|
|
15
|
+
|
|
16
|
+
search_type: str
|
|
17
|
+
"""Type of search performed (semantic, lexical, hybrid)"""
|
|
18
|
+
|
|
19
|
+
total_query_time_ms: int
|
|
20
|
+
"""Total end-to-end query execution time in milliseconds"""
|
|
21
|
+
|
|
22
|
+
embedding_time_ms: Optional[int] = None
|
|
23
|
+
"""Time spent generating embeddings in milliseconds (None for lexical queries)"""
|
|
24
|
+
|
|
25
|
+
index_query_time_ms: Optional[int] = None
|
|
26
|
+
"""Time spent querying the vector index (OpenSearch) in milliseconds"""
|
|
27
|
+
|
|
28
|
+
reranking_model: Optional[str] = None
|
|
29
|
+
"""Reranking model used (None if reranking not enabled)"""
|
|
30
|
+
|
|
31
|
+
reranking_time_ms: Optional[int] = None
|
|
32
|
+
"""Time spent reranking results in milliseconds (None if reranking not enabled)"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class Vector(BaseModel):
|
|
36
|
+
"""A document in list/query responses."""
|
|
37
|
+
|
|
38
|
+
id: str
|
|
39
|
+
"""Document ID"""
|
|
40
|
+
|
|
41
|
+
metadata: Optional[Dict[str, object]] = None
|
|
42
|
+
"""Key-value metadata"""
|
|
43
|
+
|
|
44
|
+
score: Optional[float] = None
|
|
45
|
+
"""Similarity score (for query results)"""
|
|
46
|
+
|
|
47
|
+
text: Optional[str] = None
|
|
48
|
+
"""Text content"""
|
|
49
|
+
|
|
50
|
+
vector: Optional[List[float]] = None
|
|
51
|
+
"""Embedding vector (if requested)"""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class VectorStoreQueryResponse(BaseModel):
|
|
55
|
+
"""Response for query operation."""
|
|
56
|
+
|
|
57
|
+
metadata: Metadata
|
|
58
|
+
"""Query execution metadata"""
|
|
59
|
+
|
|
60
|
+
vectors: List[Vector]
|
|
61
|
+
"""Array of matching documents"""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Iterable
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VectorStoreUpsertParams", "Vector"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VectorStoreUpsertParams(TypedDict, total=False):
|
|
12
|
+
vectors: Required[Iterable[Vector]]
|
|
13
|
+
"""Array of documents to upsert"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Vector(TypedDict, total=False):
|
|
17
|
+
"""A document for insert/upsert operations."""
|
|
18
|
+
|
|
19
|
+
id: str
|
|
20
|
+
"""Unique document ID (auto-generated if not provided)"""
|
|
21
|
+
|
|
22
|
+
metadata: Dict[str, object]
|
|
23
|
+
"""Key-value metadata"""
|
|
24
|
+
|
|
25
|
+
text: str
|
|
26
|
+
"""Text content to be embedded"""
|
|
27
|
+
|
|
28
|
+
vector: Iterable[float]
|
|
29
|
+
"""Pre-computed embedding vector"""
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["VectorStoreUpsertResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VectorStoreUpsertResponse(BaseModel):
|
|
11
|
+
"""Response for batch insert/upsert operations."""
|
|
12
|
+
|
|
13
|
+
failed: int
|
|
14
|
+
"""Failed operation count"""
|
|
15
|
+
|
|
16
|
+
successful: int
|
|
17
|
+
"""Successful operation count"""
|
|
18
|
+
|
|
19
|
+
total_attempted: int
|
|
20
|
+
"""Total operations attempted"""
|
|
21
|
+
|
|
22
|
+
error_messages: Optional[List[str]] = None
|
|
23
|
+
"""Error messages from failed operations"""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["VectorStoreVectorsParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VectorStoreVectorsParams(TypedDict, total=False):
|
|
11
|
+
cursor: str
|
|
12
|
+
"""Pagination cursor"""
|
|
13
|
+
|
|
14
|
+
filter: str
|
|
15
|
+
"""Metadata filter expression (JSON)"""
|
|
16
|
+
|
|
17
|
+
include_vectors: bool
|
|
18
|
+
"""Include embedding vectors"""
|
|
19
|
+
|
|
20
|
+
limit: int
|
|
21
|
+
"""Vectors per page"""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["VectorStoreVectorsResponse", "Vector"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Vector(BaseModel):
|
|
11
|
+
"""A document in list/query responses."""
|
|
12
|
+
|
|
13
|
+
id: str
|
|
14
|
+
"""Document ID"""
|
|
15
|
+
|
|
16
|
+
metadata: Optional[Dict[str, object]] = None
|
|
17
|
+
"""Key-value metadata"""
|
|
18
|
+
|
|
19
|
+
score: Optional[float] = None
|
|
20
|
+
"""Similarity score (for query results)"""
|
|
21
|
+
|
|
22
|
+
text: Optional[str] = None
|
|
23
|
+
"""Text content"""
|
|
24
|
+
|
|
25
|
+
vector: Optional[List[float]] = None
|
|
26
|
+
"""Embedding vector (if requested)"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class VectorStoreVectorsResponse(BaseModel):
|
|
30
|
+
"""Response for list operation."""
|
|
31
|
+
|
|
32
|
+
vectors: List[Vector]
|
|
33
|
+
"""Array of documents"""
|
|
34
|
+
|
|
35
|
+
next_cursor: Optional[str] = None
|
|
36
|
+
"""Pagination cursor for next page"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a43
|
|
4
4
|
Summary: The official Python library for the Scale GP API
|
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
|
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
|
|
@@ -48,8 +48,8 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
48
48
|
|
|
49
49
|
Use the Scale GP MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
50
50
|
|
|
51
|
-
[](https://cursor.com/en-US/install-mcp?name=scale-gp-mcp&config=
|
|
52
|
-
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22scale-gp-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22scale-gp-mcp%22%5D%7D)
|
|
51
|
+
[](https://cursor.com/en-US/install-mcp?name=scale-gp-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNjYWxlLWdwLW1jcCJdLCJlbnYiOnsiU0dQX0FQSV9LRVkiOiJNeSBBUEkgS2V5IiwiU0dQX0FDQ09VTlRfSUQiOiJNeSBBY2NvdW50IElEIn19)
|
|
52
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22scale-gp-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22scale-gp-mcp%22%5D%2C%22env%22%3A%7B%22SGP_API_KEY%22%3A%22My%20API%20Key%22%2C%22SGP_ACCOUNT_ID%22%3A%22My%20Account%20ID%22%7D%7D)
|
|
53
53
|
|
|
54
54
|
> Note: You may need to set environment variables in your MCP client.
|
|
55
55
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
scale_gp_beta/__init__.py,sha256=MFsKxnaLkZ-Rqv127bA2T0OpHD3me1OnwIom-0I2gB0,2742
|
|
2
|
-
scale_gp_beta/_base_client.py,sha256=
|
|
3
|
-
scale_gp_beta/_client.py,sha256=
|
|
4
|
-
scale_gp_beta/_compat.py,sha256=
|
|
2
|
+
scale_gp_beta/_base_client.py,sha256=EAxp4m4vZPmU-8ivWEEv-GNxzjFHsZNFS0rN3E6ShrM,73665
|
|
3
|
+
scale_gp_beta/_client.py,sha256=45HgtXiZgIGL-clDzOGkCI6_1Lwcflr0WSFm2XiiRek,42809
|
|
4
|
+
scale_gp_beta/_compat.py,sha256=teO44AYozpv2wFRrUi7brcZfGPpFSERQZ4fcdX6zVvs,6627
|
|
5
5
|
scale_gp_beta/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
scale_gp_beta/_exceptions.py,sha256=95GM5CLFtP-QMjjmzsr5ajjZOyEZvyaETfGmqNPR8YM,3226
|
|
7
7
|
scale_gp_beta/_files.py,sha256=HOCL7NYupx5rmxPWzvzifOW_LkRj0zBssmxqLFtYURI,3616
|
|
@@ -11,12 +11,13 @@ scale_gp_beta/_resource.py,sha256=siZly_U6D0AOVLAzaOsqUdEFFzVMbWRj-ml30nvRp7E,11
|
|
|
11
11
|
scale_gp_beta/_response.py,sha256=GemuybPk0uemovTlGHyHkj-ScYTTDJA0jqH5FQqIPwQ,28852
|
|
12
12
|
scale_gp_beta/_streaming.py,sha256=xX-SwwToqjKjZCpAuUixrO5qTWgdHzOMErAadnKk4Yw,10317
|
|
13
13
|
scale_gp_beta/_types.py,sha256=91u4yp566AoT5VoDhNGZbmJ213XzpSbyPHgZLCBqAs8,7601
|
|
14
|
-
scale_gp_beta/_version.py,sha256
|
|
14
|
+
scale_gp_beta/_version.py,sha256=-Y-FcR5tkPHBZhmZ3mKWRFPwJZYHkQGdMgVF6PxUGIw,174
|
|
15
15
|
scale_gp_beta/pagination.py,sha256=t-U86PYxl20VRsz8VXOMJJDe7HxkX7ISFMvRNbBNy9s,4054
|
|
16
16
|
scale_gp_beta/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
scale_gp_beta/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
18
18
|
scale_gp_beta/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
19
19
|
scale_gp_beta/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
|
|
20
|
+
scale_gp_beta/_utils/_json.py,sha256=bl95uuIWwgSfXX-gP1trK_lDAPwJujYfJ05Cxo2SEC4,962
|
|
20
21
|
scale_gp_beta/_utils/_logs.py,sha256=e6Q2f2qmGe638ty50AXbwcPVlwCdTtXDzybw3eSWwGU,792
|
|
21
22
|
scale_gp_beta/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
|
22
23
|
scale_gp_beta/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
@@ -43,7 +44,7 @@ scale_gp_beta/lib/tracing/integrations/openai/__init__.py,sha256=47DEQpj8HBSa-_T
|
|
|
43
44
|
scale_gp_beta/lib/tracing/integrations/openai/openai_span_type_map.py,sha256=WIPVdOd1aaVmenZuK3PJ7pZMnk_uJRX5vQXj0s6O9ow,792
|
|
44
45
|
scale_gp_beta/lib/tracing/integrations/openai/openai_tracing_sgp_processor.py,sha256=o-Fp_V7U9cC1kKP0_750GQInKGlF7KAdpIbGTmyu2tg,5270
|
|
45
46
|
scale_gp_beta/lib/tracing/integrations/openai/utils.py,sha256=DqCb7_QX-OT4y34K9wtoXIv7-Yk_IOvSbQvC96Sgpy8,2183
|
|
46
|
-
scale_gp_beta/resources/__init__.py,sha256=
|
|
47
|
+
scale_gp_beta/resources/__init__.py,sha256=Yd6NSoVhV1Wun0M2AaFeTt3O17HybJd1BpzXkN_MPNk,7969
|
|
47
48
|
scale_gp_beta/resources/build.py,sha256=1LNowzczQYRXKN0xqquhsAqqQh78Jxa_Njab1hoXsGs,22276
|
|
48
49
|
scale_gp_beta/resources/completions.py,sha256=wtVhUh5LMwXolICQhpeCZUlzRM-ChLSvLiQm92sO-EQ,30934
|
|
49
50
|
scale_gp_beta/resources/credentials.py,sha256=Eax7ouhJQ61CHy-mQlmBiylBKiNfGhBFoWlBiuHHQH4,32903
|
|
@@ -57,13 +58,14 @@ scale_gp_beta/resources/questions.py,sha256=7M6TDVoEo4VjVKjm7uHkO3hxeCKjRDs2fBZx
|
|
|
57
58
|
scale_gp_beta/resources/responses.py,sha256=ha6JeU1vCoxC4Z00jsbS1D7jEpxy-xlCiEkx5-RqrX0,11755
|
|
58
59
|
scale_gp_beta/resources/span_assessments.py,sha256=HOJ6qKtwXVPkgRLO8VmcfEoFWTAlAHl-SrjCpIDj7Ck,25560
|
|
59
60
|
scale_gp_beta/resources/spans.py,sha256=n1H-cbyufqR0fg9h_jLb66IAYHxWUPhIrNNokZNi5Ok,33260
|
|
61
|
+
scale_gp_beta/resources/vector_stores.py,sha256=L-Xf7Uwow_L6CxVMjt2BzaTeIPBG-KQsuI-JNwCAyyI,52407
|
|
60
62
|
scale_gp_beta/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
61
63
|
scale_gp_beta/resources/chat/chat.py,sha256=4OG_TrwVqYvV-7Ha8Nbc6iuXQuys9wKXgkxYmE6p6jk,3672
|
|
62
64
|
scale_gp_beta/resources/chat/completions.py,sha256=yOnyGK2QBaFNL0el5aL1A5T6JmBKof6ghf9Hh80C7mo,50044
|
|
63
65
|
scale_gp_beta/resources/files/__init__.py,sha256=VgAtqUimN5Kf_-lmEaNBnu_ApGegKsJQ1zNf-42MXFA,1002
|
|
64
66
|
scale_gp_beta/resources/files/content.py,sha256=QDtcnsK2my4-ndmwyaR6zyQnV1fEjIJ7CSDoyXUcYxg,5762
|
|
65
67
|
scale_gp_beta/resources/files/files.py,sha256=dowTYD-xKhCI17zINYZywUtzv7VwofjV1tY6AfncHjE,24603
|
|
66
|
-
scale_gp_beta/types/__init__.py,sha256=
|
|
68
|
+
scale_gp_beta/types/__init__.py,sha256=yJZRSdSmCqYL3JmapGnF3FskLjcCua39Z6v3W0dmYgk,8306
|
|
67
69
|
scale_gp_beta/types/approval_status.py,sha256=rI70l7e2ey2ax8tR_sBkziVSirq_QaDDV1bHgNrfCWQ,227
|
|
68
70
|
scale_gp_beta/types/assessment_type.py,sha256=_4V6RZ5wUyU0UYrDjCoIRdaiiZtZVpY6DMsW1QClq-c,271
|
|
69
71
|
scale_gp_beta/types/build_cancel_response.py,sha256=ghlldFT3BpPZbbDa0Ag0Jj4gJKXXe9rDxX9BPN9j29Q,867
|
|
@@ -147,6 +149,21 @@ scale_gp_beta/types/span_update_params.py,sha256=xpk0NKNsw_RAXIZN1U1ddqUHpPE--W9
|
|
|
147
149
|
scale_gp_beta/types/span_upsert_batch_params.py,sha256=JdXDZapv7kRYYgU5Stltyagtw4PPuCZLUy7Qo8019bQ,1329
|
|
148
150
|
scale_gp_beta/types/span_upsert_batch_response.py,sha256=Gkndmd_cyfodeGaCJu4sF4TsgB22hgHVlmoek3e_Kkc,366
|
|
149
151
|
scale_gp_beta/types/stream_chunk.py,sha256=3D9ElvLwGCPwvymBiLClUs3fhGXIoNTXx0TiS7C91iI,276
|
|
152
|
+
scale_gp_beta/types/vector_store.py,sha256=p5E_GZ1oB-bP7jolkPMm4w1RqRkhdfKg-VRC9Bx-Ue0,1286
|
|
153
|
+
scale_gp_beta/types/vector_store_configure_params.py,sha256=k9TBA8B7bY9LH8MGpOBYQUisqzh9MrXmJV9ccM1vWaM,546
|
|
154
|
+
scale_gp_beta/types/vector_store_count_params.py,sha256=3VNof5GXirHnMDNSMRqYppV73GhObotT-MmLmDM5IaM,348
|
|
155
|
+
scale_gp_beta/types/vector_store_count_response.py,sha256=gj9AaZQltoaVqHp7mj2qtJNdHM16NB1FCIif_sVz6VE,312
|
|
156
|
+
scale_gp_beta/types/vector_store_create_params.py,sha256=ZLQ6haEy5eznWASmOucLB72UlBg1Q0TlCWpPgXHpVIo,1242
|
|
157
|
+
scale_gp_beta/types/vector_store_delete_params.py,sha256=ttfXjcbQbcJl5ttXK3CIMieT2lyWNeo6XOaMds093zs,472
|
|
158
|
+
scale_gp_beta/types/vector_store_delete_response.py,sha256=sCbbnbU8pDC47ToEGl54W3JjdoTCD9qoIrF5x8ydQEc,309
|
|
159
|
+
scale_gp_beta/types/vector_store_drop_response.py,sha256=rlxbjgppPQYKdTaFC39bi7wSftnuGpHf32w3q6BeoDo,310
|
|
160
|
+
scale_gp_beta/types/vector_store_list_params.py,sha256=vKPzuh07V719Db48ntMe-tavlawf89QYfr0txsD-TDI,386
|
|
161
|
+
scale_gp_beta/types/vector_store_query_params.py,sha256=lpeph3t_pb1nrxeVM-WQyq50kz2-OdtodnODwPRoozQ,938
|
|
162
|
+
scale_gp_beta/types/vector_store_query_response.py,sha256=tGZKyEg1G1qF8UZYqUK4imuGgoce2jrJmlRDxzRqI6g,1655
|
|
163
|
+
scale_gp_beta/types/vector_store_upsert_params.py,sha256=gvhNqkWLssyCvw-NyFUhxDmVpHaAF3E3XBXXjn0aydk,742
|
|
164
|
+
scale_gp_beta/types/vector_store_upsert_response.py,sha256=OuadAya0pCRjQj_AZQsPirn9IqER1m3HSDtKdbNRg0A,563
|
|
165
|
+
scale_gp_beta/types/vector_store_vectors_params.py,sha256=oyXUezURIa0Gtq0gK_3yTFev9nntPuoLthBdBda3ezg,472
|
|
166
|
+
scale_gp_beta/types/vector_store_vectors_response.py,sha256=sNnxsTPqaEJnm0YlwxQo5FnI86KBWl-I8kkbwTXxiOg,843
|
|
150
167
|
scale_gp_beta/types/chat/__init__.py,sha256=YmEJo3C_C7aRkImUaKB5BG97oOGkV0q3sHimL8cMa4g,688
|
|
151
168
|
scale_gp_beta/types/chat/chat_completion.py,sha256=JM1meIbWU2ImWkSO2m78666ltpUgDzgj1RpN5y3EaZM,16335
|
|
152
169
|
scale_gp_beta/types/chat/chat_completion_chunk.py,sha256=w7kGJcwoGuj_wl9kEACNspEvy8RV-h1wlwMW3dhC-xY,12025
|
|
@@ -158,7 +175,7 @@ scale_gp_beta/types/chat/model_definition.py,sha256=OWcZ4StZ4K2wfL7FqHNK-HqxLjy9
|
|
|
158
175
|
scale_gp_beta/types/files/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
159
176
|
scale_gp_beta/types/shared/__init__.py,sha256=6-walu4YgOTaOj7wsidywTj67PyBJaNYFqasfiTP9-4,130
|
|
160
177
|
scale_gp_beta/types/shared/identity.py,sha256=4XDoJjsPI4lkwyaYyNstw7OunIzJjVWujPoZPrNdoQA,348
|
|
161
|
-
scale_gp_beta-0.1.
|
|
162
|
-
scale_gp_beta-0.1.
|
|
163
|
-
scale_gp_beta-0.1.
|
|
164
|
-
scale_gp_beta-0.1.
|
|
178
|
+
scale_gp_beta-0.1.0a43.dist-info/METADATA,sha256=3SqjbJNFY9TCGGIo0Q0dwleH4rh1UrPwT4DYEyL3YDU,30528
|
|
179
|
+
scale_gp_beta-0.1.0a43.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
180
|
+
scale_gp_beta-0.1.0a43.dist-info/licenses/LICENSE,sha256=LvNy55OMOsNOGUqjHCwQ6uYO0IuU9LJp1CJRpoz0abY,11338
|
|
181
|
+
scale_gp_beta-0.1.0a43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|