using System; using System.Collections.Generic; namespace xAiApi.Models { /// /// Result of Ingesting Files into Persistent Knowledge Base (XAiVector Table) ... /// public class XAiKnowledgeIngestResult { /// /// Count of Successfully Ingested Files ... /// public int FilesCount { get; set; } /// /// Count of Stored Chunks (Vectors) in this Request ... /// public int ChunksCount { get; set; } /// /// Count of Removed Stale Vectors (Re-Ingest) ... /// public int ReplacedCount { get; set; } /// /// Skipped Files (Empty, Unsupported or Extraction Failed) ... /// public IList SkippedFiles { get; set; } = new List(); /// /// Ingested Documents Info ... /// public IList Documents { get; set; } = new List(); } /// /// Ask Request over Persistent Knowledge Base ... /// public class XAiKnowledgeAskRequest { /// /// Question ... /// public string Prompt { get; set; } /// /// Optional: Restrict Retrieval to a Specific File ... /// public string FileName { get; set; } /// /// Optional: Max Retrieved Chunks ... /// public int? TopK { get; set; } /// /// Optional: Minimum Cosine Similarity Score ... /// public float? MinScore { get; set; } } /// /// Ingested Document Info ... /// public class XAiKnowledgeDocumentInfo { /// /// File Name ... /// public string FileName { get; set; } /// /// Mime Type ... /// public string MimeType { get; set; } /// /// Count of Stored Chunks ... /// public int ChunksCount { get; set; } /// /// Ingestion Time (UTC) ... /// public DateTime? IngestedAtUtc { get; set; } } }