Lots of groundwork and the app runs but not currently working to generate embeddings.
This commit is contained in:
27
VectorSearchApp/Configuration/AppConfiguration.cs
Normal file
27
VectorSearchApp/Configuration/AppConfiguration.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace VectorSearchApp.Configuration;
|
||||
|
||||
public class AppConfiguration
|
||||
{
|
||||
public QdrantConfiguration Qdrant { get; set; } = new();
|
||||
public EmbeddingConfiguration Embedding { get; set; } = new();
|
||||
public AppSettings App { get; set; } = new();
|
||||
}
|
||||
|
||||
public class QdrantConfiguration
|
||||
{
|
||||
public string Host { get; set; } = "localhost";
|
||||
public int GrpcPort { get; set; } = 6334;
|
||||
public int HttpPort { get; set; } = 6333;
|
||||
public string CollectionName { get; set; } = "addresses";
|
||||
}
|
||||
|
||||
public class EmbeddingConfiguration
|
||||
{
|
||||
public string ModelName { get; set; } = "sentence-transformers/all-MiniLM-L6-v2";
|
||||
public int Dimension { get; set; } = 384;
|
||||
}
|
||||
|
||||
public class AppSettings
|
||||
{
|
||||
public int BatchSize { get; set; } = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user