- AI chat with SSE streaming (Microsoft Agent Framework + Qwen) - RAG Q&A with hybrid retrieval (vector + keyword RRF fusion) - Knowledge base CRUD with semantic text chunking - Embedding generation via Azure.AI.OpenAI / LM Studio - Document upload with chunked upload support - Redis caching for chat messages - Chunk/vector preview endpoints - gRPC auth service improvements - Removed demo menus, cleaned up seed data
15 lines
487 B
C#
15 lines
487 B
C#
namespace RAG.Infrastructure.AI;
|
|
|
|
public class AiOptions
|
|
{
|
|
public const string SectionName = "Ai";
|
|
|
|
public string BaseUrl { get; set; } = "http://localhost:1234/v1";
|
|
public string ApiKey { get; set; } = "lm-studio";
|
|
public string ChatModel { get; set; } = "";
|
|
public string EmbeddingModel { get; set; } = "";
|
|
public string DefaultInstructions { get; set; } = "";
|
|
public int MaxTokens { get; set; } = 2000;
|
|
public double Temperature { get; set; } = 0.7;
|
|
}
|