Skip to main content

Module memory

Module memory 

Source
Expand description

In-memory store for testing without LanceDB.

This module provides a MemoryStore that stores chunks and files in memory. It’s useful for:

  • Testing without the LanceDB dependency
  • Development builds with faster compilation
  • Unit tests that don’t need persistence

Re-exportsΒ§

use async_trait::async_trait; πŸ”’
use chrono::Utc; πŸ”’
use ragfs_core::Chunk; πŸ”’
use ragfs_core::DirectoryScope; πŸ”’
use ragfs_core::FileRecord; πŸ”’
use ragfs_core::SearchQuery; πŸ”’
use ragfs_core::SearchResult; πŸ”’
use ragfs_core::StoreError; πŸ”’
use ragfs_core::StoreStats; πŸ”’
use ragfs_core::VectorStore; πŸ”’
use ragfs_core::dir_path_matches_scope; πŸ”’
use std::collections::HashMap; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use std::sync::Arc; πŸ”’
use tokio::sync::RwLock; πŸ”’
use tracing::debug; πŸ”’
use uuid::Uuid; πŸ”’

StructsΒ§

MemoryStore
In-memory vector store for testing.