Merge pull request #641 from iceljc/master

remove web url for now
This commit is contained in:
iceljc 2024-09-13 19:12:40 -05:00 committed by GitHub
commit 8b0ecc89bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 7 deletions

View file

@ -23,10 +23,6 @@ public class KnowledgeDocMetaData
[JsonPropertyName("vector_data_ids")]
public IEnumerable<string> VectorDataIds { get; set; } = new List<string>();
[JsonPropertyName("web_url")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? WebUrl { get; set; }
[JsonPropertyName("create_date")]
public DateTime CreateDate { get; set; } = DateTime.UtcNow;

View file

@ -9,7 +9,6 @@ public class KnowledgeCollectionFileDocument : MongoBase
public string ContentType { get; set; }
public string VectorStoreProvider { get; set; }
public IEnumerable<string> VectorDataIds { get; set; } = new List<string>();
public string? WebUrl { get; set; }
public DateTime CreateDate { get; set; }
public string CreateUserId { get; set; }
}

View file

@ -128,6 +128,7 @@ public partial class MongoRepository
var doc = new KnowledgeCollectionFileDocument
{
Id = Guid.NewGuid().ToString(),
Collection = metaData.Collection,
FileId = metaData.FileId,
FileName = metaData.FileName,
@ -135,7 +136,6 @@ public partial class MongoRepository
ContentType = metaData.ContentType,
VectorStoreProvider = metaData.VectorStoreProvider,
VectorDataIds = metaData.VectorDataIds,
WebUrl = metaData.WebUrl,
CreateDate = metaData.CreateDate,
CreateUserId = metaData.CreateUserId
};
@ -180,7 +180,6 @@ public partial class MongoRepository
ContentType = x.ContentType,
VectorStoreProvider = x.VectorStoreProvider,
VectorDataIds = x.VectorDataIds,
WebUrl = x.WebUrl,
CreateDate = x.CreateDate,
CreateUserId = x.CreateUserId
})?.ToList() ?? new List<KnowledgeDocMetaData>();