import os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
create_knowledge_base_uploads_from_files_response = client.knowledge_bases.upload_files(
knowledge_base_id="knowledge_base_id",
chunking_strategy_config="chunking_strategy_config",
data_source_config="data_source_config",
files=["string"],
force_reupload=True,
)
print(create_knowledge_base_uploads_from_files_response.upload_ids){
"upload_ids": [
"<string>"
]
}import os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
create_knowledge_base_uploads_from_files_response = client.knowledge_bases.upload_files(
knowledge_base_id="knowledge_base_id",
chunking_strategy_config="chunking_strategy_config",
data_source_config="data_source_config",
files=["string"],
force_reupload=True,
)
print(create_knowledge_base_uploads_from_files_response.upload_ids){
"upload_ids": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
Use this file to discover all available pages before exploring further.
JSON-encoded dictionary of custom metadata to attach to all chunks generated from the uploaded files. These metadata fields become queryable via metadata_filters on the chunks query endpoint.
Successful Response
List of upload IDs that have been kicked off by the upload API