using System; using xAiApi.Models; using xAiModels.Models.Dtos; using System.Collections.Generic; namespace xAiApi.Interfaces { public interface IXInMemoryVectorStore { int Count { get; } int RemoveExpired(); Guid CreateSession( string ownerId = null, TimeSpan? ttl = null ); Guid CreateSession( IEnumerable vectors, string ownerId = null, TimeSpan? ttl = null ); bool Replace( Guid sessionId, IEnumerable vectors, string ownerId = null ); bool Add( Guid sessionId, IEnumerable vectors, string ownerId = null ); IList Search( Guid sessionId, ReadOnlyMemory queryEmbedding, int topK = 5, float minScore = 0f, string ownerId = null ); bool TryGet( Guid sessionId, out XAiDocumentSession session, string ownerId = null ); bool Remove( Guid sessionId, string ownerId = null ); } }