-
Notifications
You must be signed in to change notification settings - Fork 10
Collection : with assistant flag and additional enhancements #412
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
642e39c
first commit containing everything
nishika26 aa23f3d
endpoint docs rephrase
nishika26 501b46a
endpoint docs rephrase
nishika26 1d19b51
input validator pydantic v2 update
nishika26 344d77b
input validator pydantic v2 update again
nishika26 0218327
Merge branch 'main' into enhancement/collection_vector_store
nishika26 cd392c0
pr review changes without callback changes
nishika26 335ece7
code rabbit small comment
nishika26 dc79111
further enhancements and test cases
nishika26 4f0bd33
Merge branch 'main' into enhancement/collection_vector_store
nishika26 6c54f71
coderabbit review fixes
nishika26 3b2e2a6
small fix and endpoint doc update
nishika26 ead41a0
small test fix
nishika26 165edf6
small fixes
nishika26 395916d
small fix
nishika26 87ff5ea
small fixes suggested by coderabbit
nishika26 4007930
being extra cautious
nishika26 70dfae1
Merge branch 'main' into enhancement/collection_vector_store
nishika26 be86fce
small fix by coderabbit
nishika26 01e2d45
updating the response body for failed job
nishika26 d4de7bd
pr review fixes
nishika26 37872f0
pr review fixes
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 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,4 +1,4 @@ | ||
| Retrieve detailed information about a specific collection by its ID from the collection table. Note that this endpoint CANNOT be used as a polling endpoint for collection creation because an entry will be made in the collection table only after the resource creation and association has been successful. | ||
|
|
||
| This endpoint returns metadata for the collection, including its project, organization, | ||
| Retrieve detailed information about `a specific collection by its ID` from the collection table. This endpoint returns the collection object including its project, organization, | ||
| timestamps, and associated LLM service details (`llm_service_id`). | ||
|
|
||
| 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. |
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,12 +1,9 @@ | ||
| Retrieve information about a collection job by the collection job ID. This endpoint can be considered the polling endpoint for collection creation job. This endpoint provides detailed status and metadata for a specific collection job | ||
| in the AI platform. It is especially useful for: | ||
| Retrieve information about a collection job by the collection job ID. This endpoint provides detailed status and metadata for a specific collection job in the AI platform. It is especially useful for: | ||
|
|
||
| * Fetching the collection job object containing the ID which will be collection job id, collection ID, status of the job as well as error message. | ||
| * Fetching the collection job object, including the collection job ID, the current status, and the associated collection details. | ||
|
|
||
| * 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: | ||
| - `llm_service_id`: The OpenAI assistant or model used for the collection. | ||
| - Collection metadata such as ID, project, organization, and timestamps. | ||
| - `llm_service_id`: The OpenAI assistant or model used for the collection. | ||
| - Collection metadata such as ID, project, organization, and timestamps. | ||
|
|
||
| * If the job of delete collection was successful, we will get the status as successful and nothing will be returned as collection. | ||
|
|
||
| * Containing a simplified error messages in the retrieved collection job object when a job has failed. | ||
| * 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. |
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,2 +1,6 @@ | ||
| List _active_ collections -- collections that have been created but | ||
| not deleted | ||
|
|
||
| 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. | ||
|
|
||
| [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. |
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
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.