Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions src/libs/Vectara/Generated/Vectara..JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,63 +17,63 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.FilterAttributeLevelNullableJsonConverter),
typeof(global::Vectara.JsonConverters.FilterAttributeTypeJsonConverter),
typeof(global::Vectara.JsonConverters.FilterAttributeTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ChunkingStrategyDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.ChunkingStrategyDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateDocumentRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateDocumentRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.LanguageJsonConverter),
typeof(global::Vectara.JsonConverters.LanguageNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CitationParametersStyleJsonConverter),
typeof(global::Vectara.JsonConverters.CitationParametersStyleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SearchSemanticsJsonConverter),
typeof(global::Vectara.JsonConverters.SearchSemanticsNullableJsonConverter),
typeof(global::Vectara.JsonConverters.QueryWarningJsonConverter),
typeof(global::Vectara.JsonConverters.QueryWarningNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SearchSemanticsJsonConverter),
typeof(global::Vectara.JsonConverters.SearchSemanticsNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CitationParametersStyleJsonConverter),
typeof(global::Vectara.JsonConverters.CitationParametersStyleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.QueryStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.QueryStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ChunkingStrategyDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.ChunkingStrategyDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateDocumentRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateDocumentRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ChatStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.ChatStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateEncoderRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateEncoderRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.JobTypeJsonConverter),
typeof(global::Vectara.JsonConverters.JobTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.JobStateJsonConverter),
typeof(global::Vectara.JsonConverters.JobStateNullableJsonConverter),
typeof(global::Vectara.JsonConverters.RewrittenQueryWarningJsonConverter),
typeof(global::Vectara.JsonConverters.RewrittenQueryWarningNullableJsonConverter),
typeof(global::Vectara.JsonConverters.QueryHistorySpanDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.QueryHistorySpanDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ChatStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.ChatStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateChatCompletionResponseObjectJsonConverter),
typeof(global::Vectara.JsonConverters.CreateChatCompletionResponseObjectNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter),
typeof(global::Vectara.JsonConverters.CreateChatCompletionStreamResponseObjectNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerJsonConverter),
typeof(global::Vectara.JsonConverters.SearchCorporaParametersJsonConverter),
typeof(global::Vectara.JsonConverters.KeyedSearchCorpusJsonConverter),
typeof(global::Vectara.JsonConverters.QueryStreamedResponseJsonConverter),
typeof(global::Vectara.JsonConverters.CreateEncoderRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateEncoderRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.JobStateJsonConverter),
typeof(global::Vectara.JsonConverters.JobStateNullableJsonConverter),
typeof(global::Vectara.JsonConverters.JobTypeJsonConverter),
typeof(global::Vectara.JsonConverters.JobTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ChunkingStrategyJsonConverter),
typeof(global::Vectara.JsonConverters.CreateDocumentRequestJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseJsonConverter),
typeof(global::Vectara.JsonConverters.SearchRerankerJsonConverter),
typeof(global::Vectara.JsonConverters.QueryStreamedResponseJsonConverter),
typeof(global::Vectara.JsonConverters.KeyedSearchCorpusJsonConverter),
typeof(global::Vectara.JsonConverters.SearchCorporaParametersJsonConverter),
typeof(global::Vectara.JsonConverters.QueryHistorySpanJsonConverter),
typeof(global::Vectara.JsonConverters.ChatStreamedResponseJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestJsonConverter),
typeof(global::Vectara.JsonConverters.RemoteAuthJsonConverter),
typeof(global::Vectara.JsonConverters.CreateLLMRequestJsonConverter),
typeof(global::Vectara.JsonConverters.CreateEncoderRequestJsonConverter),
typeof(global::Vectara.JsonConverters.QueryHistorySpanJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestJsonConverter),
typeof(global::Vectara.JsonConverters.AllOfJsonConverter<global::Vectara.SearchCorpus, global::Vectara.SearchParameters>),
typeof(global::Vectara.JsonConverters.AllOfJsonConverter<global::Vectara.User, global::Vectara.CreateUserResponse2>),
typeof(global::Vectara.JsonConverters.UnixTimestampJsonConverter),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ partial void ProcessCreateChatResponseContent(
/// <param name="requestTimeoutMillis"></param>
/// <param name="query">
/// The chat message or question.<br/>
/// Example: How can I use the Vectara platform?
/// Example: What are the carbon reduction efforts by EU banks in 2023?
/// </param>
/// <param name="search">
/// The parameters to search one or more corpora.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ partial void ProcessCreateChatTurnResponseContent(
/// <param name="chatId"></param>
/// <param name="query">
/// The chat message or question.<br/>
/// Example: How can I use the Vectara platform?
/// Example: What are the carbon reduction efforts by EU banks in 2023?
/// </param>
/// <param name="search">
/// The parameters to search one or more corpora.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,30 @@ partial void ProcessCorrectHallucinationsResponseContent(
/// <param name="documents">
/// The source documents that were used to generate the text.
/// </param>
/// <param name="model">
/// The name of the LLM model to use for hallucination correction.
/// <param name="modelName">
/// The name of the LLM model to use for hallucination correction.<br/>
/// Example: vhc-large-10
/// </param>
/// <param name="query">
/// Optional query that provides context for the expected response format and factual information. When provided, enables query-aware hallucination correction that considers the specific response format and factual context expected for the query.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Vectara.HallucinationCorrectionResponse> CorrectHallucinationsAsync(
string generatedText,
global::System.Collections.Generic.IList<global::Vectara.HcmSourceDocument> documents,
string model,
string modelName,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
string? query = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Vectara.HallucinationCorrectionRequest
{
GeneratedText = generatedText,
Documents = documents,
Model = model,
ModelName = modelName,
Query = query,
};

return await CorrectHallucinationsAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public partial interface IChatsClient
/// <param name="requestTimeoutMillis"></param>
/// <param name="query">
/// The chat message or question.<br/>
/// Example: How can I use the Vectara platform?
/// Example: What are the carbon reduction efforts by EU banks in 2023?
/// </param>
/// <param name="search">
/// The parameters to search one or more corpora.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public partial interface IChatsClient
/// <param name="chatId"></param>
/// <param name="query">
/// The chat message or question.<br/>
/// Example: How can I use the Vectara platform?
/// Example: What are the carbon reduction efforts by EU banks in 2023?
/// </param>
/// <param name="search">
/// The parameters to search one or more corpora.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ public partial interface IHallucinationCorrectorsClient
/// <param name="documents">
/// The source documents that were used to generate the text.
/// </param>
/// <param name="model">
/// The name of the LLM model to use for hallucination correction.
/// <param name="modelName">
/// The name of the LLM model to use for hallucination correction.<br/>
/// Example: vhc-large-10
/// </param>
/// <param name="query">
/// Optional query that provides context for the expected response format and factual information. When provided, enables query-aware hallucination correction that considers the specific response format and factual context expected for the query.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Vectara.HallucinationCorrectionResponse> CorrectHallucinationsAsync(
string generatedText,
global::System.Collections.Generic.IList<global::Vectara.HcmSourceDocument> documents,
string model,
string modelName,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
string? query = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ public partial interface IIndexClient
{
/// <summary>
/// Add a document to a corpus<br/>
/// Add a document to a corpus. This endpoint supports two document formats, structured and core.<br/>
/// * **Structured** documents have a more conventional structure that provide document sections and parts in a format created by Vectara's proprietary strategy automatically. You provide a logical document structure, and Vectara handles the partitioning. * **Core** documents differ in that they follow an advanced, granular structure that explicitly defines each document part in an array. Each part becomes a distinct, searchable item in query results. You have precise control over the document structure and content.<br/>
/// Add a document to a corpus. This endpoint supports two document formats: structured and core.<br/>
/// * **Structured** documents have a conventional structure that provides document sections and parts in a format created by our proprietary strategy automatically. You provide a logical document structure, and Vectara handles the partitioning.<br/>
/// * **Core** documents differ in that they follow an advanced, granular structure that explicitly defines each document part in an array. Each part becomes a distinct, searchable item in query results. You have precise control over the document structure and content.<br/>
/// For more details, see [Indexing](https://docs.vectara.com/docs/learn/select-ideal-indexing-api).
/// </summary>
/// <param name="requestTimeout"></param>
Expand All @@ -28,8 +29,9 @@ public partial interface IIndexClient

/// <summary>
/// Add a document to a corpus<br/>
/// Add a document to a corpus. This endpoint supports two document formats, structured and core.<br/>
/// * **Structured** documents have a more conventional structure that provide document sections and parts in a format created by Vectara's proprietary strategy automatically. You provide a logical document structure, and Vectara handles the partitioning. * **Core** documents differ in that they follow an advanced, granular structure that explicitly defines each document part in an array. Each part becomes a distinct, searchable item in query results. You have precise control over the document structure and content.<br/>
/// Add a document to a corpus. This endpoint supports two document formats: structured and core.<br/>
/// * **Structured** documents have a conventional structure that provides document sections and parts in a format created by our proprietary strategy automatically. You provide a logical document structure, and Vectara handles the partitioning.<br/>
/// * **Core** documents differ in that they follow an advanced, granular structure that explicitly defines each document part in an array. Each part becomes a distinct, searchable item in query results. You have precise control over the document structure and content.<br/>
/// For more details, see [Indexing](https://docs.vectara.com/docs/learn/select-ideal-indexing-api).
/// </summary>
/// <param name="requestTimeout"></param>
Expand Down
Loading