All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| CreateVectorCollection | Post /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection |
| DeleteVectorCollection | Delete /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection |
| DeleteVectorDocuments | Delete /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection |
| GetVectorCollection | Get /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details |
| ListVectorCollections | Get /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections |
| QueryVectorCollection | Post /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query |
| UploadVectorDocuments | Post /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Upload Documents to Collection |
CreateVectorCollection201Response CreateVectorCollection(ctx, organisation).CreateVectorCollectionRequest(createVectorCollectionRequest).Execute()
Create Vector Database Collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
createVectorCollectionRequest := *openapiclient.NewCreateVectorCollectionRequest("product-documentation") // CreateVectorCollectionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.CreateVectorCollection(context.Background(), organisation).CreateVectorCollectionRequest(createVectorCollectionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.CreateVectorCollection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateVectorCollection`: CreateVectorCollection201Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.CreateVectorCollection`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID |
Other parameters are passed through a pointer to a apiCreateVectorCollectionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createVectorCollectionRequest | CreateVectorCollectionRequest | |
CreateVectorCollection201Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteVectorCollection200Response DeleteVectorCollection(ctx, organisation, collectionId).Execute()
Delete Collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The collection ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.DeleteVectorCollection(context.Background(), organisation, collectionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.DeleteVectorCollection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteVectorCollection`: DeleteVectorCollection200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.DeleteVectorCollection`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| collectionId | string | The collection ID |
Other parameters are passed through a pointer to a apiDeleteVectorCollectionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
DeleteVectorCollection200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteVectorDocuments200Response DeleteVectorDocuments(ctx, organisation, collectionId).DeleteVectorDocumentsRequest(deleteVectorDocumentsRequest).Execute()
Delete Documents from Collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | Organisation machine name
collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Collection UUID
deleteVectorDocumentsRequest := *openapiclient.NewDeleteVectorDocumentsRequest() // DeleteVectorDocumentsRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.DeleteVectorDocuments(context.Background(), organisation, collectionId).DeleteVectorDocumentsRequest(deleteVectorDocumentsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.DeleteVectorDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteVectorDocuments`: DeleteVectorDocuments200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.DeleteVectorDocuments`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | Organisation machine name | |
| collectionId | string | Collection UUID |
Other parameters are passed through a pointer to a apiDeleteVectorDocumentsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
deleteVectorDocumentsRequest | DeleteVectorDocumentsRequest | |
DeleteVectorDocuments200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetVectorCollection200Response GetVectorCollection(ctx, organisation, collectionId).Execute()
Get Collection Details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The collection ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.GetVectorCollection(context.Background(), organisation, collectionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.GetVectorCollection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetVectorCollection`: GetVectorCollection200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.GetVectorCollection`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| collectionId | string | The collection ID |
Other parameters are passed through a pointer to a apiGetVectorCollectionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
GetVectorCollection200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListVectorCollections200Response ListVectorCollections(ctx, organisation).Execute()
List Vector Database Collections
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.ListVectorCollections(context.Background(), organisation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.ListVectorCollections``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListVectorCollections`: ListVectorCollections200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.ListVectorCollections`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID |
Other parameters are passed through a pointer to a apiListVectorCollectionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ListVectorCollections200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
QueryVectorCollection200Response QueryVectorCollection(ctx, organisation, collectionId).QueryVectorCollectionRequest(queryVectorCollectionRequest).Execute()
Semantic Search Query
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The collection ID
queryVectorCollectionRequest := *openapiclient.NewQueryVectorCollectionRequest() // QueryVectorCollectionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.QueryVectorCollection(context.Background(), organisation, collectionId).QueryVectorCollectionRequest(queryVectorCollectionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.QueryVectorCollection``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `QueryVectorCollection`: QueryVectorCollection200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.QueryVectorCollection`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| collectionId | string | The collection ID |
Other parameters are passed through a pointer to a apiQueryVectorCollectionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
queryVectorCollectionRequest | QueryVectorCollectionRequest | |
QueryVectorCollection200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UploadVectorDocuments200Response UploadVectorDocuments(ctx, organisation, collectionId).UploadVectorDocumentsRequest(uploadVectorDocumentsRequest).Execute()
Upload Documents to Collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The collection ID
uploadVectorDocumentsRequest := *openapiclient.NewUploadVectorDocumentsRequest([]openapiclient.UploadVectorDocumentsRequestDocumentsInner{*openapiclient.NewUploadVectorDocumentsRequestDocumentsInner("Content_example")}) // UploadVectorDocumentsRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIVectorDatabaseAPI.UploadVectorDocuments(context.Background(), organisation, collectionId).UploadVectorDocumentsRequest(uploadVectorDocumentsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.UploadVectorDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadVectorDocuments`: UploadVectorDocuments200Response
fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.UploadVectorDocuments`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| collectionId | string | The collection ID |
Other parameters are passed through a pointer to a apiUploadVectorDocumentsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
uploadVectorDocumentsRequest | UploadVectorDocumentsRequest | |
UploadVectorDocuments200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]