-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed chunk patch methods.
- Loading branch information
Showing
9 changed files
with
67 additions
and
13 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
8 changes: 8 additions & 0 deletions
8
UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Corpora/Chunks/Patch.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...uralstech.ugemini/Runtime/Scripts/Data/Corpora/Chunks/Patch/GeminiCorpusChunkPatchData.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,25 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Serialization; | ||
using System.ComponentModel; | ||
|
||
namespace Uralstech.UGemini.CorporaAPI.Chunks | ||
{ | ||
/// <summary> | ||
/// Data to patch an existing Chunk resource with new data. | ||
/// </summary> | ||
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))] | ||
public class GeminiCorpusChunkPatchData | ||
{ | ||
/// <summary> | ||
/// The content for the Chunk, such as text. The maximum number of tokens per chunk is 2043. | ||
/// </summary> | ||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(null)] | ||
public GeminiCorpusChunkData Data = null; | ||
|
||
/// <summary> | ||
/// User provided custom metadata stored as key-value pairs used for querying. A Chunk can have a maximum of 20 CustomMetadata. | ||
/// </summary> | ||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(null)] | ||
public GeminiCorpusCustomMetadata[] CustomMetadata = null; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...tech.ugemini/Runtime/Scripts/Data/Corpora/Chunks/Patch/GeminiCorpusChunkPatchData.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Corpora/Documents/Patch.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
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