mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-07 05:16:27 +00:00
Fixed minor warnings for Qdrant edge client implementation (#791)
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
This commit is contained in:
parent
f47dd5fdc2
commit
25595a39a5
@ -17,10 +17,12 @@ public sealed class QdrantEdgeClientImplementation(
|
|||||||
private const string INSERT_PATH = "/system/qdrant-edge/insert";
|
private const string INSERT_PATH = "/system/qdrant-edge/insert";
|
||||||
private const string DELETE_FILE_PATH = "/system/qdrant-edge/delete-file";
|
private const string DELETE_FILE_PATH = "/system/qdrant-edge/delete-file";
|
||||||
private const string DELETE_STORE_PATH = "/system/qdrant-edge/delete-store";
|
private const string DELETE_STORE_PATH = "/system/qdrant-edge/delete-store";
|
||||||
|
|
||||||
|
private readonly string path = path;
|
||||||
|
|
||||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(QdrantEdgeClientImplementation).Namespace, nameof(QdrantEdgeClientImplementation));
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(QdrantEdgeClientImplementation).Namespace, nameof(QdrantEdgeClientImplementation));
|
||||||
|
|
||||||
public override string CacheKey => $"{this.Name}:{path}:{version}";
|
public override string CacheKey => $"{this.Name}:{this.path}:{version}";
|
||||||
|
|
||||||
public static async Task<DatabaseClient> CreateAsync(
|
public static async Task<DatabaseClient> CreateAsync(
|
||||||
RustService rustService,
|
RustService rustService,
|
||||||
@ -46,7 +48,9 @@ public sealed class QdrantEdgeClientImplementation(
|
|||||||
if (!qdrantEdgeInfo.IsAvailable || qdrantEdgeInfo.Status is QdrantEdgeStatus.UNAVAILABLE)
|
if (!qdrantEdgeInfo.IsAvailable || qdrantEdgeInfo.Status is QdrantEdgeStatus.UNAVAILABLE)
|
||||||
{
|
{
|
||||||
var reason = qdrantEdgeInfo.UnavailableReason ?? "unknown";
|
var reason = qdrantEdgeInfo.UnavailableReason ?? "unknown";
|
||||||
|
// ReSharper disable DuplicateItemInLoggerTemplate
|
||||||
logger.LogWarning("{VectorStoreName} is not available. Starting without {VectorStoreName} vector store. Reason: '{Reason}'.", DATABASE_NAME, DATABASE_NAME, reason);
|
logger.LogWarning("{VectorStoreName} is not available. Starting without {VectorStoreName} vector store. Reason: '{Reason}'.", DATABASE_NAME, DATABASE_NAME, reason);
|
||||||
|
// ReSharper restore DuplicateItemInLoggerTemplate
|
||||||
return CreateNoVectorStoreClient(DATABASE_NAME, qdrantEdgeInfo.UnavailableReason, DatabaseClientStatus.UNAVAILABLE, databaseClientLogger);
|
return CreateNoVectorStoreClient(DATABASE_NAME, qdrantEdgeInfo.UnavailableReason, DatabaseClientStatus.UNAVAILABLE, databaseClientLogger);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,11 +103,13 @@ public sealed class QdrantEdgeClientImplementation(
|
|||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper disable NotAccessedPositionalProperty.Local
|
||||||
private sealed record EnsureVectorStoreRequest(string StoreName, int VectorSize);
|
private sealed record EnsureVectorStoreRequest(string StoreName, int VectorSize);
|
||||||
|
|
||||||
private sealed record InsertEmbeddingRequest(string StoreName, IReadOnlyList<VectorStoragePoint> Points);
|
private sealed record InsertEmbeddingRequest(string StoreName, IReadOnlyList<VectorStoragePoint> Points);
|
||||||
|
|
||||||
private sealed record DeleteEmbeddingByFileRequest(string StoreName, string FilePath);
|
private sealed record DeleteEmbeddingByFileRequest(string StoreName, string FilePath);
|
||||||
|
|
||||||
private sealed record DeleteVectorStoreRequest(string StoreName);
|
private sealed record DeleteVectorStoreRequest(string StoreName);
|
||||||
}
|
// ReSharper restore NotAccessedPositionalProperty.Local
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user