The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
export interface DocumentMeta {
id: string
name: string
type: 'pdf' | 'docx' | 'txt'
size: number
addedAt: number
chunkCount: number
/** SHA-256 of the file, hex. Written on a phone, where the same file must not be added twice. */
contentHash?: string
}
export interface TextChunk {
id: string
documentId: string
content: string
embedding: number[]
index: number
}
export interface RAGContext {
chunks: TextChunk[]
query: string
documentIds: string[]
}
export interface VectorSearchResult {
chunk: TextChunk
score: number
}