Skip to content
Open
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
Expand Up @@ -19,7 +19,11 @@ public class IngestedChunk

[VectorStoreKey(StorageName = "key")]
[JsonPropertyName("key")]
#if (IsAzureAISearch)
public required string Key { get; set; }
#else
public required Guid Key { get; set; }
#endif

[VectorStoreData(StorageName = "documentid")]
[JsonPropertyName("documentid")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
namespace AIChatWeb_CSharp.Web.Services;

public class SemanticSearch(
#if (IsAzureAISearch)
VectorStoreCollection<string, IngestedChunk> vectorCollection,
#else
VectorStoreCollection<Guid, IngestedChunk> vectorCollection,
#endif
[FromKeyedServices("ingestion_directory")] DirectoryInfo ingestionDirectory,
DataIngestor dataIngestor)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class IngestedChunk

[VectorStoreKey(StorageName = "key")]
[JsonPropertyName("key")]
public required Guid Key { get; set; }
public required string Key { get; set; }

[VectorStoreData(StorageName = "documentid")]
[JsonPropertyName("documentid")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace aichatweb.Web.Services;

public class SemanticSearch(
VectorStoreCollection<Guid, IngestedChunk> vectorCollection,
VectorStoreCollection<string, IngestedChunk> vectorCollection,
[FromKeyedServices("ingestion_directory")] DirectoryInfo ingestionDirectory,
DataIngestor dataIngestor)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class IngestedChunk

[VectorStoreKey(StorageName = "key")]
[JsonPropertyName("key")]
public required Guid Key { get; set; }
public required string Key { get; set; }

[VectorStoreData(StorageName = "documentid")]
[JsonPropertyName("documentid")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace aichatweb.Services;

public class SemanticSearch(
VectorStoreCollection<Guid, IngestedChunk> vectorCollection,
VectorStoreCollection<string, IngestedChunk> vectorCollection,
[FromKeyedServices("ingestion_directory")] DirectoryInfo ingestionDirectory,
DataIngestor dataIngestor)
{
Expand Down