langchain4d_local 0.1.0
langchain4d_local: ^0.1.0 copied to clipboard
Local vector store implementations for LangChain4d - in-memory and file-based storage
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.