Fixed DatabaseInsertEmbeddingBulk, Added attributes bulk edit and delete, Fixed entityCache not multithreading safe, fixed EntityFromJSON missing bulk inserts, Added retry logic for BulkExecuteNonQuery, added MaxRequestBodySize configuration
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Shared;
|
||||
using Shared.Models;
|
||||
|
||||
namespace Server;
|
||||
|
||||
@@ -10,6 +11,15 @@ public class Datapoint
|
||||
public List<(string, float[])> embeddings;
|
||||
public string hash;
|
||||
|
||||
public Datapoint(string name, ProbMethodEnum probMethod, SimilarityMethodEnum similarityMethod, string hash, List<(string, float[])> embeddings)
|
||||
{
|
||||
this.name = name;
|
||||
this.probMethod = new ProbMethod(probMethod);
|
||||
this.similarityMethod = new SimilarityMethod(similarityMethod);
|
||||
this.hash = hash;
|
||||
this.embeddings = embeddings;
|
||||
}
|
||||
|
||||
public Datapoint(string name, ProbMethod probMethod, SimilarityMethod similarityMethod, string hash, List<(string, float[])> embeddings)
|
||||
{
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user