Knowledge Bases
Knowledge Bases
Create a Knowledge Base
client.knowledgeBases.create(KnowledgeBaseCreateParams { database_id, datasources, embedding_model_uuid, 5 more } body?, RequestOptionsoptions?): KnowledgeBaseCreateResponse { knowledge_base }
/v2/gen-ai/knowledge_bases
Delete a Knowledge Base
client.knowledgeBases.delete(stringuuid, RequestOptionsoptions?): KnowledgeBaseDeleteResponse { uuid }
/v2/gen-ai/knowledge_bases/{uuid}
List Knowledge Bases
client.knowledgeBases.list(KnowledgeBaseListParams { page, per_page } query?, RequestOptionsoptions?): KnowledgeBaseListResponse { knowledge_bases, links, meta }
/v2/gen-ai/knowledge_bases
Retrieve Information About an Existing Knowledge Base
client.knowledgeBases.retrieve(stringuuid, RequestOptionsoptions?): KnowledgeBaseRetrieveResponse { database_status, knowledge_base }
/v2/gen-ai/knowledge_bases/{uuid}
Update a Knowledge Base
client.knowledgeBases.update(stringpathUuid, KnowledgeBaseUpdateParams { database_id, embedding_model_uuid, name, 3 more } body?, RequestOptionsoptions?): KnowledgeBaseUpdateResponse { knowledge_base }
/v2/gen-ai/knowledge_bases/{uuid}
Models
Knowledge BasesData Sources
Add Data Source to a Knowledge Base
client.knowledgeBases.dataSources.create(stringknowledgeBaseUuid, DataSourceCreateParams { aws_data_source, knowledge_base_uuid, spaces_data_source, web_crawler_data_source } body?, RequestOptionsoptions?): DataSourceCreateResponse { knowledge_base_data_source }
/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources
Create Presigned URLs for Data Source File Upload
client.knowledgeBases.dataSources.createPresignedURLs(DataSourceCreatePresignedURLsParams { files } body?, RequestOptionsoptions?): DataSourceCreatePresignedURLsResponse { request_id, uploads }
/v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls
Delete a Data Source from a Knowledge Base
client.knowledgeBases.dataSources.delete(stringdataSourceUuid, DataSourceDeleteParams { knowledge_base_uuid } params, RequestOptionsoptions?): DataSourceDeleteResponse { data_source_uuid, knowledge_base_uuid }
/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}
List Data Sources for a Knowledge Base
client.knowledgeBases.dataSources.list(stringknowledgeBaseUuid, DataSourceListParams { page, per_page } query?, RequestOptionsoptions?): DataSourceListResponse { knowledge_base_data_sources, links, meta }
/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources
Models
Knowledge BasesIndexing Jobs
Start Indexing Job for a Knowledge Base
client.knowledgeBases.indexingJobs.create(IndexingJobCreateParams { data_source_uuids, knowledge_base_uuid } body?, RequestOptionsoptions?): IndexingJobCreateResponse { job }
/v2/gen-ai/indexing_jobs
List Indexing Jobs for a Knowledge Base
client.knowledgeBases.indexingJobs.list(IndexingJobListParams { page, per_page } query?, RequestOptionsoptions?): IndexingJobListResponse { jobs, links, meta }
/v2/gen-ai/indexing_jobs
Retrieve Status of Indexing Job for a Knowledge Base
client.knowledgeBases.indexingJobs.retrieve(stringuuid, RequestOptionsoptions?): IndexingJobRetrieveResponse { job }
/v2/gen-ai/indexing_jobs/{uuid}
List Data Sources for Indexing Job for a Knowledge Base
client.knowledgeBases.indexingJobs.retrieveDataSources(stringindexingJobUuid, RequestOptionsoptions?): IndexingJobRetrieveDataSourcesResponse { indexed_data_sources }
/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources
Cancel Indexing Job for a Knowledge Base
client.knowledgeBases.indexingJobs.updateCancel(stringpathUuid, IndexingJobUpdateCancelParams { body_uuid } body?, RequestOptionsoptions?): IndexingJobUpdateCancelResponse { job }
/v2/gen-ai/indexing_jobs/{uuid}/cancel