-
Notifications
You must be signed in to change notification settings - Fork 10
Documentation: iterating over collection and documents module #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nishika26
wants to merge
5
commits into
main
Choose a base branch
from
enahncement/documentation_collection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f686331
fixing documentation
nishika26 63398b0
adding few more changes to docs
nishika26 9a4ccb9
coderabbit reviews
nishika26 af17c8d
Merge branch 'main' into enahncement/documentation_collection
nishika26 a5182a0
pr review comments
nishika26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| Remove a collection from the platform. This is a two step process: | ||
| Remove a collection from the platform. | ||
|
|
||
| This is a two-step process: | ||
|
|
||
| 1. Delete all resources that were allocated: file(s), the Vector | ||
| Store, and the Assistant. | ||
| 2. Delete the collection entry from the kaapi database. | ||
|
|
||
| No action is taken on the documents themselves: the contents of the | ||
| documents that were a part of the collection remain unchanged, those | ||
| documents can still be accessed via the documents endpoints. The response from this | ||
| endpoint will be a `collection_job` object which will contain the collection `job_id` and | ||
| status. When you take the id returned and use the `collection job info` endpoint, | ||
| documents can still be accessed via the documents endpoints. The endpoint returns the job ID and status of the collection delete operation. When you take the id returned and use the `collection job info` endpoint, | ||
| if the job is successful, you will get the status as successful. | ||
| Additionally, if a `callback_url` was provided in the request body, | ||
| you will receive a message indicating whether the deletion was successful or if it failed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| Perform a delete of the document. This makes the | ||
| document invisible. It does not delete the document from cloud storage | ||
| or its information from the database. | ||
| Perform a delete of the document. | ||
|
|
||
| If the document is part of an active collection, those collections | ||
| will be deleted using the collections delete interface. Noteably, this | ||
| means all OpenAI Vector Store's and Assistant's to which this document | ||
| belongs will be deleted. | ||
| This makes the document invisible. It does not delete the document | ||
|
nishika26 marked this conversation as resolved.
Outdated
|
||
| from cloud storage or its information from the database. | ||
|
|
||
| If the document belongs to any active collections, those collections will also be deleted. This includes all associated knowledge bases — for example, any OpenAI vector stores that were created through this platform with this document. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| Permanently delete a document from cloud storage. | ||
|
|
||
| This operation marks the document as deleted in the database while retaining its metadata. However, the actual file is | ||
| permanently deleted from cloud storage (e.g., S3) and cannot be recovered. Only the database record remains for reference | ||
| purposes. | ||
|
|
||
| If the document is part of an active collection, those collections | ||
| will be deleted using the collections delete interface. Noteably, this | ||
| means all OpenAI Vector Store's and Assistant's to which this document | ||
| belongs will be deleted. | ||
| If the document belongs to any active collections, those collections will also be deleted. This includes all associated knowledge bases — for example, any OpenAI vector stores that were created through this platform with this document. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| Upload a document to Kaapi. | ||
| Upload a document to Kaapi and optionally transform it as well. | ||
|
|
||
| - If only a file is provided, the document will be uploaded and stored, and its ID will be returned. | ||
| - If a target format is specified, a transformation job will also be created to transform document into target format in the background. The response will include both the uploaded document details and information about the transformation job. | ||
| - If a callback URL is provided, you will receive a notification at that URL once the document transformation job is completed. | ||
|
|
||
| ### Supported Transformations | ||
| ### Supported Transformations: | ||
|
|
||
| The following (source_format → target_format) transformations are supported: | ||
| The following (source_format → target_format) transformations are supported for now: | ||
|
|
||
| - pdf → markdown | ||
|
nishika26 marked this conversation as resolved.
|
||
| - zerox | ||
|
|
||
| ### Transformers | ||
| ### Transformers: | ||
|
|
||
| Available transformer names and their implementations, default transformer is zerox: | ||
| Available transformer names and their implementations, default transformer is zerox for now: | ||
|
|
||
| - `zerox` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.