remove params
This commit is contained in:
parent
5f23322560
commit
e3c00490f2
|
|
@ -73,7 +73,7 @@ public partial class KnowledgeService
|
||||||
payload[KnowledgePayloadName.FileUrl] = file.FileUrl;
|
payload[KnowledgePayloadName.FileUrl] = file.FileUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
var dataIds = await SaveToVectorDb(collectionName, fileId, file.FileName, contents, payload);
|
var dataIds = await SaveToVectorDb(collectionName, contents, payload);
|
||||||
if (!dataIds.IsNullOrEmpty())
|
if (!dataIds.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
db.SaveKnolwedgeBaseFileMeta(new KnowledgeDocMetaData
|
db.SaveKnolwedgeBaseFileMeta(new KnowledgeDocMetaData
|
||||||
|
|
@ -145,7 +145,7 @@ public partial class KnowledgeService
|
||||||
payload[KnowledgePayloadName.FileUrl] = refData.Url;
|
payload[KnowledgePayloadName.FileUrl] = refData.Url;
|
||||||
}
|
}
|
||||||
|
|
||||||
var dataIds = await SaveToVectorDb(collectionName, fileId, fileName, contents, payload);
|
var dataIds = await SaveToVectorDb(collectionName, contents, payload);
|
||||||
db.SaveKnolwedgeBaseFileMeta(new KnowledgeDocMetaData
|
db.SaveKnolwedgeBaseFileMeta(new KnowledgeDocMetaData
|
||||||
{
|
{
|
||||||
Collection = collectionName,
|
Collection = collectionName,
|
||||||
|
|
@ -411,8 +411,7 @@ public partial class KnowledgeService
|
||||||
return saved;
|
return saved;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<IEnumerable<string>> SaveToVectorDb(
|
private async Task<IEnumerable<string>> SaveToVectorDb(string collectionName, IEnumerable<string> contents, Dictionary<string, object>? payload = null)
|
||||||
string collectionName, Guid fileId, string fileName, IEnumerable<string> contents, Dictionary<string, object>? payload = null)
|
|
||||||
{
|
{
|
||||||
if (contents.IsNullOrEmpty())
|
if (contents.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue