langchain4d_local

Local vector store implementations for LangChain4d - in-memory and file-based storage.

Features

  • In-memory vector store for fast access
  • File-based vector store for persistence
  • JSON serialization/deserialization
  • Similarity search with scores

Usage

import 'package:langchain4d_local/langchain4d_local.dart';

// In-memory store
final vectorStore = InMemoryVectorStore(
  embeddingModel: embeddingModel,
);

// File-based store
final fileStore = FileVectorStore(
  embeddingModel: embeddingModel,
  filePath: '/path/to/vectors.json',
);

Documentation

See the main documentation for more information.

Libraries

langchain4d_local
LangChain4d 本地向量存储