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
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
#nullable enable

namespace Mixedbread
{
public partial interface IStoresClient
{
/// <summary>
/// List store chunks by metadata filter and numeric ranking<br/>
/// List store chunks purely by metadata filters — no embeddings, no semantic similarity, no reranking.<br/>
/// Unlike `/stores/search`, this endpoint does not require a query and never runs a vector lookup.<br/>
/// It returns chunks whose file and chunk metadata satisfy `filters`, optionally ordered by a<br/>
/// numeric metadata field via `sort_by`. Useful for ranked retrieval over numeric attributes<br/>
/// (e.g. price, BPM) and for reproducing the agentic `filter_chunks` tool externally.<br/>
/// list-chunks targets a single store and does not support pagination; raise `top_k` to<br/>
/// retrieve more chunks.<br/>
/// Args:<br/>
/// filter_params: Filter configuration including:<br/>
/// - store_identifiers: the single store to filter against<br/>
/// - filters: optional metadata filter conditions<br/>
/// - file_ids: optional list of file IDs to filter chunks by<br/>
/// - sort_by: optional metadata field path, or `(field, ascending)` tuple, for numeric ordering<br/>
/// - top_k: number of chunks to return<br/>
/// Returns:<br/>
/// StoreListChunksResponse containing the list of matching chunks.<br/>
/// Raises:<br/>
/// HTTPException (400): If filter parameters are invalid or multiple stores are passed<br/>
/// HTTPException (404): If the store is not found
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Mixedbread.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mixedbread.StoreListChunksResponse> ListStoreChunksAsync(

global::Mixedbread.StoreChunkFilterParams request,
global::Mixedbread.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List store chunks by metadata filter and numeric ranking<br/>
/// List store chunks purely by metadata filters — no embeddings, no semantic similarity, no reranking.<br/>
/// Unlike `/stores/search`, this endpoint does not require a query and never runs a vector lookup.<br/>
/// It returns chunks whose file and chunk metadata satisfy `filters`, optionally ordered by a<br/>
/// numeric metadata field via `sort_by`. Useful for ranked retrieval over numeric attributes<br/>
/// (e.g. price, BPM) and for reproducing the agentic `filter_chunks` tool externally.<br/>
/// list-chunks targets a single store and does not support pagination; raise `top_k` to<br/>
/// retrieve more chunks.<br/>
/// Args:<br/>
/// filter_params: Filter configuration including:<br/>
/// - store_identifiers: the single store to filter against<br/>
/// - filters: optional metadata filter conditions<br/>
/// - file_ids: optional list of file IDs to filter chunks by<br/>
/// - sort_by: optional metadata field path, or `(field, ascending)` tuple, for numeric ordering<br/>
/// - top_k: number of chunks to return<br/>
/// Returns:<br/>
/// StoreListChunksResponse containing the list of matching chunks.<br/>
/// Raises:<br/>
/// HTTPException (400): If filter parameters are invalid or multiple stores are passed<br/>
/// HTTPException (404): If the store is not found
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Mixedbread.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mixedbread.AutoSDKHttpResponse<global::Mixedbread.StoreListChunksResponse>> ListStoreChunksAsResponseAsync(

global::Mixedbread.StoreChunkFilterParams request,
global::Mixedbread.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List store chunks by metadata filter and numeric ranking<br/>
/// List store chunks purely by metadata filters — no embeddings, no semantic similarity, no reranking.<br/>
/// Unlike `/stores/search`, this endpoint does not require a query and never runs a vector lookup.<br/>
/// It returns chunks whose file and chunk metadata satisfy `filters`, optionally ordered by a<br/>
/// numeric metadata field via `sort_by`. Useful for ranked retrieval over numeric attributes<br/>
/// (e.g. price, BPM) and for reproducing the agentic `filter_chunks` tool externally.<br/>
/// list-chunks targets a single store and does not support pagination; raise `top_k` to<br/>
/// retrieve more chunks.<br/>
/// Args:<br/>
/// filter_params: Filter configuration including:<br/>
/// - store_identifiers: the single store to filter against<br/>
/// - filters: optional metadata filter conditions<br/>
/// - file_ids: optional list of file IDs to filter chunks by<br/>
/// - sort_by: optional metadata field path, or `(field, ascending)` tuple, for numeric ordering<br/>
/// - top_k: number of chunks to return<br/>
/// Returns:<br/>
/// StoreListChunksResponse containing the list of matching chunks.<br/>
/// Raises:<br/>
/// HTTPException (400): If filter parameters are invalid or multiple stores are passed<br/>
/// HTTPException (404): If the store is not found
/// </summary>
/// <param name="storeIdentifiers">
/// IDs or names of stores
/// </param>
/// <param name="topK">
/// Number of results to return<br/>
/// Default Value: 10
/// </param>
/// <param name="filters">
/// Optional filter conditions
/// </param>
/// <param name="fileIds">
/// Optional list of file IDs to filter chunks by (inclusion filter)
/// </param>
/// <param name="sortBy">
/// Optional sort applied to the returned chunks. Pass a metadata field path or a tuple of (field path, ascending). Unprefixed dot paths target file metadata; generated_metadata.* targets chunk metadata.
/// </param>
/// <param name="searchOptions">
/// Search configuration options
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Mixedbread.StoreListChunksResponse> ListStoreChunksAsync(
global::System.Collections.Generic.IList<global::Mixedbread.AnyOf<string, global::System.Guid?>> storeIdentifiers,
int? topK = default,
global::Mixedbread.AnyOf<global::Mixedbread.SearchFilterInput, global::Mixedbread.SearchFilterCondition, global::System.Collections.Generic.IList<global::Mixedbread.AnyOf<global::Mixedbread.SearchFilterInput, global::Mixedbread.SearchFilterCondition>>, object>? filters = default,
global::Mixedbread.AnyOf<global::System.Collections.Generic.IList<global::Mixedbread.AnyOf<global::Mixedbread.ConditionOperator?, global::System.Collections.Generic.IList<global::System.Guid>>>, global::System.Collections.Generic.IList<global::System.Guid>, object>? fileIds = default,
global::Mixedbread.AnyOf<string, global::System.Collections.Generic.IList<global::Mixedbread.AnyOf<string, bool?>>, object>? sortBy = default,
global::Mixedbread.StoreChunkSearchOptions? searchOptions = default,
global::Mixedbread.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,33 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso


var readerCopy = reader;
var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.StoreSearchResponseDataItemDiscriminator> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator)}");
var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreListChunksResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.StoreListChunksResponseDataItemDiscriminator> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreListChunksResponseDataItemDiscriminator)}");
var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);

global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.Text)
if (discriminator?.Type == global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType.Text)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk)}");
text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.ImageUrl)
if (discriminator?.Type == global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType.ImageUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk)}");
imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.AudioUrl)
if (discriminator?.Type == global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType.AudioUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk)}");
audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.VideoUrl)
if (discriminator?.Type == global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType.VideoUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk)}");
Expand Down
Loading