valentinus
valentinus-v0.6.0

使用LMDB綁定構建的下一代矢量數據庫
git clone https://github.com/kn0sys/valentinus && cd valentinus| var | 用法 | 預設 |
|---|---|---|
LMDB_USER | 數據庫用戶的工作目錄 | $用戶 |
LMDB_MAP_SIZE | 設置最大環境大小,即記憶中的大小/所有數據的磁盤 | 20%可用的內存 |
ONNX_PARALLEL_THREADS | 此會話的並行執行模式 | 1 |
VALENTINUS_CUSTOM_DIM | 自定義模型的嵌入尺寸 | All-Mini-LM-6-> 384 |
VALENTINUS_LMDB_ENV | 數據庫的環境(IE測試,產品) | 測試 |
all-MiniLM-L6-v2_onnx目錄mkdir all-MiniLM-L6-v2_onnx
cd all-MiniLM-L6-v2_onnx && wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/config.json
wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/model.onnx
wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/special_tokens_map.json
wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/tokenizer_config.json
wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/tokenizer.json
wget https://huggingface.co/nigel-christian/all-MiniLM-L6-v2_onnx/resolve/main/vocab.txt RUST_TEST_THREADS=1 cargo test
見示例
受這個Chromadb Python教程的啟發