Skip to content

Commit 30ef268

Browse files
authored
Onboarding : take multiple credentials from endpoint (#453)
* first commit will all the changes * documentation of llm and config * only stating delete instead of soft delete * small changes
1 parent 002b191 commit 30ef268

File tree

26 files changed

+427
-50
lines changed

26 files changed

+427
-50
lines changed

backend/app/api/docs/collections/create.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipeline:
66
documents stored in the cloud (see the `documents` interface).
77
* Create an OpenAI [Vector
88
Store](https://platform.openai.com/docs/api-reference/vector-stores)
9-
based on those File's.
9+
based on those file(s).
1010
* [To be deprecated] Attach the Vector Store to an OpenAI
1111
[Assistant](https://platform.openai.com/docs/api-reference/assistants). Use
1212
parameters in the request body relevant to an Assistant to flesh out
@@ -16,15 +16,15 @@ pipeline:
1616

1717
If any one of the OpenAI interactions fail, all OpenAI resources are
1818
cleaned up. If a Vector Store is unable to be created, for example,
19-
all File's that were uploaded to OpenAI are removed from
19+
all file(s) that were uploaded to OpenAI are removed from
2020
OpenAI. Failure can occur from OpenAI being down, or some parameter
21-
value being invalid. It can also fail due to document types not be
21+
value being invalid. It can also fail due to document types not being
2222
accepted. This is especially true for PDFs that may not be parseable.
2323

2424
Vector store/assistant will be created asynchronously. The immediate response
2525
from this endpoint is `collection_job` object which is going to contain
26-
the collection "job ID" and status.Once the collection has been created,
26+
the collection "job ID" and status. Once the collection has been created,
2727
information about the collection will be returned to the user via the
2828
callback URL. If a callback URL is not provided, clients can check the
29-
`collection job info` endpoint with the `job_id`, to retrieve the
29+
`collection job info` endpoint with the `job_id`, to retrieve
3030
information about the creation of collection.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Remove a collection from the platform. This is a two step process:
22

3-
1. Delete all OpenAI resources that were allocated: File's, the Vector
3+
1. Delete all OpenAI resources that were allocated: file(s), the Vector
44
Store, and the Assistant.
5-
2. Delete the collection entry from the AI platform database.
5+
2. Delete the collection entry from the kaapi database.
66

77
No action is taken on the documents themselves: the contents of the
88
documents that were a part of the collection remain unchanged, those
99
documents can still be accessed via the documents endpoints. The response from this
1010
endpoint will be a `collection_job` object which will contain the collection `job_id` and
11-
status. when you take the id returned and use the collection job
12-
info endpoint, if the job is successful, you will get the status as successful.
11+
status. When you take the id returned and use the `collection job info` endpoint,
12+
if the job is successful, you will get the status as successful.
1313
Additionally, if a `callback_url` was provided in the request body,
1414
you will receive a message indicating whether the deletion was successful or if it failed.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Retrieve detailed information about `a specific collection by its ID` from the collection table. This endpoint returns the collection object including its project, organization,
2-
timestamps, and associated LLM service details (`llm_service_id`).
1+
Retrieve detailed information about a specific collection by its collection id. This endpoint returns the collection object including its project, organization,
2+
timestamps, and associated LLM service details (`llm_service_id` and `llm_service_name`).
33

4-
Additionally, if the `include_docs` flag in the request body is true then you will get a list of document IDs associated with a given collection as well. Documents returned are not only stored by the AI platform, but also by OpenAI.
4+
Additionally, if the `include_docs` flag in the request body is true then you will get a list of document IDs associated with a given collection as well. Note that, documents returned are not only stored by the AI platform, but also by OpenAI.

backend/app/api/docs/collections/job_info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Retrieve information about a collection job by the collection job ID. This endpo
33
* Fetching the collection job object, including the collection job ID, the current status, and the associated collection details.
44

55
* If the job has finished, has been successful and it was a job of creation of collection then this endpoint will fetch the associated collection details from the collection table, including:
6-
- `llm_service_id`: The OpenAI assistant or model used for the collection.
6+
- `llm_service_id` and `llm_service_name`.
77
- Collection metadata such as ID, project, organization, and timestamps.
88

9-
* If the delete-collection job succeeds, the status is set to “successful” and the `collection_key` contains the ID of the collection that has been deleted.
9+
* If the delete-collection job succeeds, the status is set to “successful” and the `collection` key contains the ID of the collection that has been deleted.

backend/app/api/docs/collections/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ not deleted
33

44
If a vector store was created - `llm_service_name` and `llm_service_id` in the response denote the name of the vector store (eg. 'openai vector store') and its id.
55

6-
[To be deprecated] If an assistant was created, `llm_service_name` and `llm_service_id` in the response denote the name of the model used in the assistant (eg. 'gpt-4o') and assistant id.
6+
[To be deprecated] If an assistant was created, `llm_service_name` and `llm_service_id` in the response denotes the name of the model used in the assistant (eg. 'gpt-4o') and assistant id.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Create a new LLM configuration with an initial version.
2+
3+
Configurations allow you to store and manage reusable LLM parameters
4+
(such as temperature, max_tokens, model selection, etc.) with version control.
5+
6+
**Key Features:**
7+
* Automatically creates an initial version (v1) with the provided configuration
8+
* Enforces unique configuration names per project
9+
* Stores provider-specific parameters as flexible JSON (config_blob)
10+
* Supports optional commit messages for tracking changes
11+
* Provider-agnostic storage - params are passed through to the provider as-is
12+
13+
14+
**Example for the config blob: OpenAI Responses API with File Search**
15+
16+
```json
17+
"config_blob": {
18+
"completion": {
19+
"provider": "openai",
20+
"params": {
21+
"model": "gpt-4o-mini",
22+
"instructions": "You are a helpful assistant for farming communities...",
23+
"temperature": 1,
24+
"tools": [
25+
{
26+
"type": "file_search",
27+
"vector_store_ids": ["vs_692d71f3f5708191b1c46525f3c1e196"],
28+
"max_num_results": 20
29+
}]}}}
30+
```
31+
32+
The configuration name must be unique within your project. Once created,
33+
you can create additional versions to track parameter changes while
34+
maintaining the configuration history.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Create a new version for an existing configuration.
2+
3+
To create a new version, provide the `config_id` in the URL path and the new
4+
configuration parameters in the request body. The system will automatically
5+
create a new version under the same configuration with an incremented version number.
6+
Version numbers are automatically incremented sequentially (1, 2, 3, etc.)
7+
and cannot be manually set or skipped.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Delete a configuration and all its versions.
2+
3+
This operation performs a delete, marking the configuration and all
4+
associated versions as deleted in the database while retaining records
5+
for audit purposes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Delete a specific version of a configuration.
2+
3+
Performs a delete on the version, marking it as deleted while
4+
retaining the record for audit purposes.

backend/app/api/docs/config/get.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Retrieve a specific configuration by its ID.
2+
3+
Returns the configuration metadata including name, description, and
4+
timestamps. This endpoint provides configuration-level details but does
5+
not include version information.

0 commit comments

Comments
 (0)