Table of Contents

Namespace Mythosia.VectorDb.InMemory

Classes

Bm25Index

In-memory BM25 index for keyword-based document search. Uses Bm25Tokenizer for text tokenization. Thread-safe for concurrent reads and writes.

Bm25Index.Bm25Result

A single BM25 search result.

InMemoryVectorStore

Thread-safe in-memory implementation of IVectorStore using cosine similarity for TopK search. Supports metadata storage, filtering, upsert, and delete operations. Suitable for development, testing, and small-scale workloads.