-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from solliancenet/cj-synchronous-vectorization
Support for synchronous vectorization
- Loading branch information
Showing
12 changed files
with
245 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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
21 changes: 21 additions & 0 deletions
21
src/dotnet/Vectorization/Models/VectorizationProcessingResult.cs
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FoundationaLLM.Vectorization.Models | ||
{ | ||
/// <summary> | ||
/// Represents the result of processing a vectorization request. | ||
/// </summary> | ||
/// <param name="IsSuccess">Indicates whether the processing was completed successfully.</param> | ||
/// <param name="OperationId">The identifier of the vectorization operation. Can be used to request the status of the operation.</param> | ||
/// <param name="ErrorMessage">When IsSuccess is false, contains an error message with details.</param> | ||
public record VectorizationProcessingResult( | ||
bool IsSuccess, | ||
Guid? OperationId, | ||
string? ErrorMessage) | ||
{ | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/dotnet/Vectorization/Models/VectorizationProcessingType.cs
This file contains 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FoundationaLLM.Vectorization.Models | ||
{ | ||
/// <summary> | ||
/// The type of vectorization request processing. | ||
/// </summary> | ||
public enum VectorizationProcessingType | ||
{ | ||
/// <summary> | ||
/// Asynchronous processing using vectorization workers. | ||
/// </summary> | ||
Asynchronous, | ||
|
||
/// <summary> | ||
/// Synchronous processing using the vectorization API. | ||
/// </summary> | ||
Synchronous | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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.