Image missing.
Show HN: I compressed 10k PDFs into a 1.4GB video for LLM memory

created: May 29, 2025, 12:54 p.m. | updated: June 1, 2025, 8:34 p.m.

Memvid - Video-Based AI Memory 🧠📹The lightweight, game-changing solution for AI memory at scaleMemvid revolutionizes AI memory management by encoding text data into videos, enabling lightning-fast semantic search across millions of text chunks with sub-second retrieval times. add_chunks ( chunks ) encoder . build_video ( "memory.mp4" , "memory_index.json" ) # Chat with your memory chat = MemvidChat ( "memory.mp4" , "memory_index.json" ) chat . build_video ( video_path : str , index_path : str , fps : int = 30 , qr_size : int = 512 )MemvidRetrieverretriever = MemvidRetriever ( video_path : str , index_path : str , cache_size : int = 100 # Number of frames to cache ) # Methods results = retriever . get_chunks_by_ids ( chunk_ids : List [ int ])MemvidChatchat = MemvidChat ( video_path : str , index_path : str , llm_backend : str = 'openai' , # 'openai', 'anthropic', 'local' model : str = 'gpt-4' ) # Methods chat .

1 week, 4 days ago: Hacker News