Skip to main content

Module inmemory

Module inmemory 

Source
Available on crate feature rag only.
Expand description

In-memory vector store using cosine similarity.

This module provides InMemoryVectorStore, a zero-dependency vector store backed by a HashMap protected by a tokio::sync::RwLock. It is suitable for development, testing, and small-scale use cases.

Structsยง

InMemoryVectorStore
An in-memory vector store using cosine similarity for search.