向宁 67b030c3c5 feat: add AI chat, RAG Q&A, knowledge base, embeddings, document processing
- 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
2026-05-20 20:28:15 +08:00

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;
}