memvid-sdk 2.0.141__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- memvid_sdk-2.0.141/LICENSE +190 -0
- memvid_sdk-2.0.141/PKG-INFO +504 -0
- memvid_sdk-2.0.141/README.md +451 -0
- memvid_sdk-2.0.141/memvid/Cargo.toml +13 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-ask-model/Cargo.toml +33 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-ask-model/README.md +71 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-ask-model/examples/entity_extraction.rs +28 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-ask-model/src/lib.rs +3617 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/Cargo.toml +122 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/README.md +223 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/data/frequency_bigramdictionary_en_243_342.txt +242342 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/data/frequency_dictionary_en_82_765.txt +82834 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/analysis/auto_tag.rs +243 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/analysis/mod.rs +6 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/analysis/ner.rs +636 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/analysis/temporal.rs +800 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/analysis/temporal_enrich.rs +881 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/clip.rs +1674 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/constants.rs +37 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/capsule.rs +182 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/constants.rs +28 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/crypto.rs +64 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/error.rs +46 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/mod.rs +17 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/encryption/types.rs +97 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/enrich/engine.rs +199 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/enrich/mod.rs +10 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/enrich/rules.rs +1164 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/enrichment_worker.rs +583 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/error.rs +233 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/extract.rs +874 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/extract_budgeted.rs +621 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/footer.rs +179 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/graph_search.rs +492 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/header.rs +257 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/manifest_wal.rs +297 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/mod.rs +11 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/temporal_index.rs +552 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/time_index.rs +201 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/io/wal.rs +477 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/lex.rs +695 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/lib.rs +1296 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/lock.rs +192 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/lockfile.rs +202 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/melfilters.bytes +0 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/melfilters128.bytes +0 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/FORMAT.md +65 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/ask.rs +1562 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/audit.rs +326 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/builder.rs +479 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/chunks.rs +369 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/doctor.rs +1639 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/enrichment.rs +660 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/frame.rs +648 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/helpers.rs +161 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/lifecycle.rs +1520 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/maintenance.rs +176 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/memory.rs +889 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/mesh.rs +184 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/mod.rs +37 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/mutation.rs +3879 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/planner.rs +141 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/replay_ops.rs +457 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/api.rs +1009 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/builders.rs +300 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/fallback.rs +318 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/helpers.rs +420 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/mod.rs +284 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/tantivy.rs +611 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/search/time_filter.rs +347 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/segments.rs +728 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/sketch.rs +362 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/ticket.rs +158 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/timeline.rs +210 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/memvid/workers.rs +469 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/models.rs +558 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/pii.rs +250 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/docx.rs +128 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/mod.rs +211 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/passthrough.rs +49 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/pdf.rs +176 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/pptx.rs +144 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/xls.rs +103 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/reader/xlsx.rs +109 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/registry.rs +270 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/replay/engine.rs +762 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/replay/mod.rs +366 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/replay/types.rs +463 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/mod.rs +228 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/parser.rs +597 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/engine.rs +407 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/mod.rs +15 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/query.rs +268 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/schema.rs +51 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/storage.rs +151 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/util.rs +18 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/search/tantivy/wal.rs +14 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/signature.rs +187 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/structure/chunker.rs +828 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/structure/detector.rs +776 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/structure/mod.rs +47 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/symspell_cleanup.rs +367 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/layout.rs +623 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/mod.rs +163 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/multi_page.rs +434 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/pdf_extractor.rs +1095 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/storage.rs +640 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/table/types.rs +569 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/tests_lex_flag.rs +87 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/text.rs +377 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/toc.rs +411 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/triplet/extractor.rs +295 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/triplet/mod.rs +54 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/triplet/types.rs +155 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/adaptive.rs +828 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/ask.rs +164 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/audit.rs +585 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/binding.rs +39 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/common.rs +165 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/embedding.rs +255 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/embedding_identity.rs +83 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/frame.rs +361 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/graph_query.rs +325 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/logic_mesh.rs +699 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/manifest.rs +951 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/memories_track.rs +835 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/memory_card.rs +651 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/metadata.rs +134 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/mod.rs +127 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/options.rs +356 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/reranker.rs +314 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/schema.rs +544 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/search.rs +183 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/sketch_track.rs +1226 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/structure.rs +856 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/temporal.rs +203 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/ticket.rs +45 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/types/verification.rs +350 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/vec.rs +257 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/vec_pq.rs +629 -0
- memvid_sdk-2.0.141/memvid/crates/memvid-core/src/whisper.rs +1002 -0
- memvid_sdk-2.0.141/memvid_sdk/__init__.py +2664 -0
- memvid_sdk-2.0.141/memvid_sdk/_analytics.py +261 -0
- memvid_sdk-2.0.141/memvid_sdk/_registry.py +82 -0
- memvid_sdk-2.0.141/memvid_sdk/_sentinel.py +50 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/__init__.py +55 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/autogen.py +135 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/crewai.py +154 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/google_adk.py +232 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/haystack.py +19 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/langchain.py +144 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/langgraph.py +19 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/llamaindex.py +186 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/mcp.py +19 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/openai.py +231 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/semantic_kernel.py +22 -0
- memvid_sdk-2.0.141/memvid_sdk/adapters/vercel_ai.py +22 -0
- memvid_sdk-2.0.141/memvid_sdk/clip.py +597 -0
- memvid_sdk-2.0.141/memvid_sdk/embeddings.py +907 -0
- memvid_sdk-2.0.141/memvid_sdk/entities.py +764 -0
- memvid_sdk-2.0.141/memvid_sdk/types.py +86 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/.env +29 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/.env.example +38 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/.gitignore +54 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/Cargo.lock +5667 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/Cargo.toml +48 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/DEVELOPMENT.md +242 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/LICENSE +190 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/README.md +451 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/amazon.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/audit_replay_example.py +243 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/basic_usage.py +63 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/clip_example.py +101 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/cloud_ingest_example.py +320 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/configure_example.py +220 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/correct_test.py +107 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/create_memory_example.py +109 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/1.jpg +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_001_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_002_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_003_Meridian_Holdings.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_004_GreenField_Energy.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_005_Urban_Dynamics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_006_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_007_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_008_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_009_Pinnacle_Financial.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_010_Pinnacle_Financial.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_011_NovaTech_Solutions.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_012_Urban_Dynamics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_013_Pinnacle_Financial.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_014_NovaTech_Solutions.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_015_NovaTech_Solutions.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_016_Atlas_Logistics.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_017_Pinnacle_Financial.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_018_Acme_Corporation.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_019_Pinnacle_Financial.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/deal_memo_020_TechStart_Inc.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_001_20230430_Co-investment_opport.txt +29 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_002_20230627_Sector_rotation_stra.txt +33 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_003_20240315_Debt_refinancing_opt.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_004_20240129_Sector_rotation_stra.txt +27 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_005_20230904_Due_diligence_update.txt +32 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_006_20241222_Debt_refinancing_opt.txt +32 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_007_20240907_Sector_rotation_stra.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_008_20231108_Management_team_chan.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_009_20240608_Q3_performance_revie.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_010_20240301_Board_meeting_prepar.txt +33 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_011_20240725_Sector_rotation_stra.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_012_20230831_Portfolio_company_co.txt +27 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_013_20240503_ESG_compliance_updat.txt +31 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_014_20240322_Debt_refinancing_opt.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_015_20231127_Q3_performance_revie.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_016_20230503_Co-investment_opport.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_017_20240817_Q3_performance_revie.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_018_20231029_Board_meeting_prepar.txt +33 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_019_20230201_Valuation_adjustment.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_020_20240313_Competitive_threat_a.txt +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_021_20230504_Due_diligence_update.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_022_20240605_New_deal_pipeline_re.txt +35 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_023_20231124_LP_reporting_require.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_024_20241109_ESG_compliance_updat.txt +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/email_025_20241201_Portfolio_company_co.txt +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/manifest.json +181 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_056_Logistics_and_Supply_Chain.txt +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_057_Enterprise_Software.txt +44 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_058_Business_Services.txt +35 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_059_Healthcare_Services.txt +34 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_060_Logistics_and_Supply_Chain.txt +47 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_061_Business_Services.txt +34 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_062_Enterprise_Software.txt +43 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_063_Industrial_Manufacturing.txt +36 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_064_Clean_Energy.txt +34 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_065_Financial_Services.txt +51 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_066_Enterprise_Software.txt +45 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_067_Logistics_and_Supply_Chain.txt +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_068_Consumer_Retail.txt +46 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_069_Healthcare_Services.txt +35 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_070_Consumer_Retail.txt +36 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_071_Business_Services.txt +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_072_Financial_Services.txt +36 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_073_Industrial_Manufacturing.txt +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_074_Consumer_Retail.txt +51 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/market_research_075_Industrial_Manufacturing.txt +43 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_036_20240107_Deal_Team_Sync.txt +53 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_037_20230804_Deal_Team_Sync.txt +51 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_038_20240915_Portfolio_Review.txt +40 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_039_20240629_Annual_Strategy_Session.txt +47 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_040_20230401_Investment_Committee.txt +45 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_041_20231121_Investment_Committee.txt +42 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_042_20231024_Annual_Strategy_Session.txt +35 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_043_20230628_Due_Diligence_Kickoff.txt +47 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_044_20230725_Investment_Committee.txt +46 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_045_20230819_Due_Diligence_Kickoff.txt +50 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_046_20230715_Partner_Meeting.txt +52 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_047_20231005_Annual_Strategy_Session.txt +51 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_048_20241208_Due_Diligence_Kickoff.txt +40 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_049_20241203_Deal_Team_Sync.txt +45 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_050_20240804_Partner_Meeting.txt +66 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_051_20231224_Due_Diligence_Kickoff.txt +52 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_052_20230925_Partner_Meeting.txt +45 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_053_20240530_Partner_Meeting.txt +49 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_054_20230117_Portfolio_Review.txt +47 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/meeting_notes_055_20231107_Partner_Meeting.txt +54 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_021_GreenField_Energy_Q1_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_022_TechStart_Inc_Q2_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_023_Meridian_Holdings_Q3_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_024_Urban_Dynamics_Q2_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_025_Atlas_Logistics_Q1_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_026_Atlas_Logistics_Q2_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_027_NovaTech_Solutions_Q4_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_028_GreenField_Energy_Q4_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_029_Meridian_Holdings_Q4_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_030_Meridian_Holdings_Q4_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_031_Acme_Corporation_Q4_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_032_Meridian_Holdings_Q3_2024.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_033_Acme_Corporation_Q1_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_034_Meridian_Holdings_Q1_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset/quarterly_report_035_TechStart_Inc_Q2_2023.pdf +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/dataset_ingest_example.py +44 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/error_handling.py +130 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/existing_find.py +94 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/existing_usage.py +92 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/external_embeddings_example.py +219 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/follow_up_test.py +91 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/autogen_example.py +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/crewai_example.py +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/google_adk_example.py +38 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/langchain_example.py +37 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/llamaindex_example.py +30 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/openai_example.py +34 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/frameworks/vercel_ai_example.py +28 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/llm_ask_example.py +118 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/logic_mesh_example.py +134 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/mem.pptx +0 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/mp.py +3 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/nvidia_embeddings_example.py +35 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/parallel_put_example.py +262 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/pdf_ingest_example.py +78 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/pdf_tables_example.py +81 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/pii_masking_example.py +184 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/replay_example.py +184 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/session_replay_example.py +187 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/sp-global-impact-report-2024.pdf +96391 -193
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/sync_tickets_example.py +150 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/test_analytics.py +123 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/test_analytics_debug.py +93 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/test_file_ingest.py +102 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/test_memory_id.py +77 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/test_subscription_enforcement.py +120 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/timestamp_test.py +176 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/examples/webshot_agent.py +112 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/__init__.py +2664 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/_analytics.py +261 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/_registry.py +82 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/_sentinel.py +50 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/__init__.py +55 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/autogen.py +135 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/crewai.py +154 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/google_adk.py +232 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/haystack.py +19 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/langchain.py +144 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/langgraph.py +19 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/llamaindex.py +186 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/mcp.py +19 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/openai.py +231 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/semantic_kernel.py +22 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/adapters/vercel_ai.py +22 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/clip.py +597 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/embeddings.py +907 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/entities.py +764 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/memvid_sdk/types.py +86 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/requirements-dev.txt +19 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/scripts/test_examples.py +80 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/setup-native.sh +186 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/src/lib.rs +6081 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/src/lock.rs +33 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/status.md +177 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/test_capacity_simple.py +146 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/test_timeline.py +56 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/testing_chunk.py +99 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_ask_semantic.py +72 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_embedder_roundtrip.py +38 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_find_semantic.py +80 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_llm_nvidia.py +57 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_lock_capsule.py +64 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_phase0.py +235 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_phase2_models_tables.py +155 -0
- memvid_sdk-2.0.141/proprietary/memvid-bindings/python/tests/test_runtime_embeddings_gated.py +119 -0
- memvid_sdk-2.0.141/pyproject.toml +66 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 Memvid Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: memvid-sdk
|
|
3
|
+
Version: 2.0.141
|
|
4
|
+
Classifier: Programming Language :: Python
|
|
5
|
+
Classifier: Programming Language :: Python :: 3
|
|
6
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
7
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
11
|
+
Classifier: Topic :: Database
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Dist: typing-extensions>=4.0.0
|
|
14
|
+
Requires-Dist: langchain-core>=0.3,<3.0 ; extra == 'langchain'
|
|
15
|
+
Requires-Dist: llama-index>=0.12,<1.0 ; extra == 'llamaindex'
|
|
16
|
+
Requires-Dist: openai>=1.0,<3.0 ; extra == 'openai'
|
|
17
|
+
Requires-Dist: crewai>=0.70,<3.0 ; extra == 'crewai'
|
|
18
|
+
Requires-Dist: ai>=4.0,<6.0 ; extra == 'vercel-ai'
|
|
19
|
+
Requires-Dist: autogen-agentchat>=0.4,<1.0 ; extra == 'autogen'
|
|
20
|
+
Requires-Dist: haystack-ai>=2.8,<4.0 ; extra == 'haystack'
|
|
21
|
+
Requires-Dist: langgraph>=0.2,<3.0 ; extra == 'langgraph'
|
|
22
|
+
Requires-Dist: semantic-kernel>=1.17,<2.0 ; extra == 'semantic-kernel'
|
|
23
|
+
Requires-Dist: langchain-core>=0.3,<3.0 ; extra == 'full'
|
|
24
|
+
Requires-Dist: llama-index>=0.12,<1.0 ; extra == 'full'
|
|
25
|
+
Requires-Dist: openai>=1.0,<3.0 ; extra == 'full'
|
|
26
|
+
Requires-Dist: crewai>=0.70,<3.0 ; extra == 'full'
|
|
27
|
+
Requires-Dist: ai>=4.0,<6.0 ; extra == 'full'
|
|
28
|
+
Requires-Dist: autogen-agentchat>=0.4,<1.0 ; extra == 'full'
|
|
29
|
+
Requires-Dist: haystack-ai>=2.8,<4.0 ; extra == 'full'
|
|
30
|
+
Requires-Dist: langgraph>=0.2,<3.0 ; extra == 'full'
|
|
31
|
+
Requires-Dist: semantic-kernel>=1.17,<2.0 ; extra == 'full'
|
|
32
|
+
Provides-Extra: langchain
|
|
33
|
+
Provides-Extra: llamaindex
|
|
34
|
+
Provides-Extra: openai
|
|
35
|
+
Provides-Extra: crewai
|
|
36
|
+
Provides-Extra: vercel-ai
|
|
37
|
+
Provides-Extra: autogen
|
|
38
|
+
Provides-Extra: haystack
|
|
39
|
+
Provides-Extra: langgraph
|
|
40
|
+
Provides-Extra: semantic-kernel
|
|
41
|
+
Provides-Extra: full
|
|
42
|
+
License-File: LICENSE
|
|
43
|
+
Summary: Single-file AI memory system for Python. Store, search, and query documents with built-in RAG.
|
|
44
|
+
Keywords: ai,memory,rag,vector-search,semantic-search,langchain,llamaindex,embeddings
|
|
45
|
+
Author: Memvid Inc.
|
|
46
|
+
License: Apache-2.0
|
|
47
|
+
Requires-Python: >=3.8
|
|
48
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
49
|
+
Project-URL: Homepage, https://memvid.com
|
|
50
|
+
Project-URL: Repository, https://github.com/memvid/memvid
|
|
51
|
+
Project-URL: Documentation, https://docs.memvid.com
|
|
52
|
+
|
|
53
|
+
# memvid-sdk
|
|
54
|
+
|
|
55
|
+
Single-file AI memory system for Python. Store documents, search with BM25 ranking, and run retrieval-augmented generation (RAG) queries from a portable `.mv2` file.
|
|
56
|
+
|
|
57
|
+
Built on Rust with PyO3 bindings. No database setup, no network dependencies, no configuration files.
|
|
58
|
+
|
|
59
|
+
## Install
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install memvid-sdk
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Optional extras for framework integrations:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install "memvid-sdk[langchain]" # LangChain tools
|
|
69
|
+
pip install "memvid-sdk[llamaindex]" # LlamaIndex query engine
|
|
70
|
+
pip install "memvid-sdk[openai]" # OpenAI function schemas
|
|
71
|
+
pip install "memvid-sdk[crewai]" # CrewAI tools
|
|
72
|
+
pip install "memvid-sdk[full]" # All integrations
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Quick start
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from memvid_sdk import use, create
|
|
79
|
+
|
|
80
|
+
# Create a new memory file
|
|
81
|
+
mv = use("basic", "notes.mv2", mode="auto")
|
|
82
|
+
|
|
83
|
+
# Store a document
|
|
84
|
+
mv.put(
|
|
85
|
+
title="Project kickoff",
|
|
86
|
+
label="meeting",
|
|
87
|
+
metadata={"date": "2024-01-15"},
|
|
88
|
+
text="Discussed timeline, assigned tasks to team members.",
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Search by keyword
|
|
92
|
+
results = mv.find("timeline")
|
|
93
|
+
print(results["hits"])
|
|
94
|
+
|
|
95
|
+
# Ask a question (retrieves relevant context)
|
|
96
|
+
answer = mv.ask("What was discussed in the kickoff?")
|
|
97
|
+
print(answer["context"])
|
|
98
|
+
|
|
99
|
+
# Commit changes
|
|
100
|
+
mv.seal()
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Embeddings & semantic search
|
|
104
|
+
|
|
105
|
+
Semantic search (`mode="sem"`) and hybrid search (`mode="auto"`) require a vector index:
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from memvid_sdk import create
|
|
109
|
+
|
|
110
|
+
mv = create("notes.mv2", enable_vec=True)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Generate embeddings during ingestion (local or OpenAI)
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
mv.put(
|
|
117
|
+
title="Doc",
|
|
118
|
+
label="note",
|
|
119
|
+
metadata={},
|
|
120
|
+
text="alpha fastembed test",
|
|
121
|
+
enable_embedding=True,
|
|
122
|
+
embedding_model="bge-small", # local (fastembed)
|
|
123
|
+
)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Batch mode:
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
mv.put_many(
|
|
130
|
+
[{"title": "Doc", "label": "note", "text": "alpha"}],
|
|
131
|
+
opts={"enable_embedding": True, "embedding_model": "bge-small"},
|
|
132
|
+
)
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Supported `embedding_model` values:
|
|
136
|
+
`bge-small`, `bge-base`, `nomic`, `gte-large`, `openai-small`, `openai-large`, `openai-ada`.
|
|
137
|
+
|
|
138
|
+
### Bring your own embeddings (precomputed)
|
|
139
|
+
|
|
140
|
+
Store embedding identity metadata so semantic queries can auto-detect the right model later:
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
mv.put_many(
|
|
144
|
+
[{"title": "Doc", "label": "note", "text": "alpha"}],
|
|
145
|
+
embeddings=[[0.1, 0.2, 0.3, 0.4]],
|
|
146
|
+
embedding_identity={"provider": "custom", "model": "my-embedder-v1"},
|
|
147
|
+
)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Use an embedder (SDK-managed query embeddings)
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
from memvid_sdk.embeddings import HashEmbeddings
|
|
154
|
+
|
|
155
|
+
embedder = HashEmbeddings(dimension=32) # deterministic offline embedder for tests
|
|
156
|
+
mv.put_many(
|
|
157
|
+
[{"title": "Doc", "label": "note", "text": "alpha"}],
|
|
158
|
+
embedder=embedder,
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
mv.find("alpha", mode="sem", embedder=embedder)
|
|
162
|
+
mv.ask("alpha", mode="sem", context_only=True, embedder=embedder)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Built-in embedders:
|
|
166
|
+
`OpenAIEmbeddings` (`OPENAI_API_KEY`), `CohereEmbeddings` (`COHERE_API_KEY`),
|
|
167
|
+
`VoyageEmbeddings` (`VOYAGE_API_KEY`), `NvidiaEmbeddings` (`NVIDIA_API_KEY`),
|
|
168
|
+
`HuggingFaceEmbeddings` (local), `HashEmbeddings` (offline deterministic).
|
|
169
|
+
|
|
170
|
+
```python
|
|
171
|
+
from memvid_sdk.embeddings import NvidiaEmbeddings
|
|
172
|
+
|
|
173
|
+
embedder = NvidiaEmbeddings(model="nvidia/nv-embed-v1") # uses NVIDIA_API_KEY
|
|
174
|
+
mv.put_many([{"title": "Doc", "label": "note", "text": "alpha"}], embedder=embedder)
|
|
175
|
+
mv.find("alpha", mode="sem", embedder=embedder)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Auto query embeddings (no `query_embedding` required)
|
|
179
|
+
|
|
180
|
+
If the memory contains `memvid.embedding.*` identity metadata (recommended) or a known vector
|
|
181
|
+
dimension (fallback), semantic queries can embed the query automatically:
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
mv.find("alpha", mode="sem")
|
|
185
|
+
mv.find("alpha", mode="sem", query_embedding_model="bge-small") # override/force
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## Core API
|
|
189
|
+
|
|
190
|
+
### Opening a memory
|
|
191
|
+
|
|
192
|
+
```python
|
|
193
|
+
mv = use(kind, path, apikey=None, **options)
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
| Parameter | Type | Description |
|
|
197
|
+
|-----------|------|-------------|
|
|
198
|
+
| `kind` | `str` | Adapter type: `"basic"`, `"langchain"`, `"llamaindex"`, `"openai"`, `"crewai"`, `"vercel-ai"`, `"autogen"` |
|
|
199
|
+
| `path` | `str` | Path to `.mv2` file |
|
|
200
|
+
| `mode` | `str` | `"open"` (default), `"create"`, or `"auto"` |
|
|
201
|
+
| `enable_lex` | `bool` | Enable lexical index (default: `True`) |
|
|
202
|
+
| `enable_vec` | `bool` | Enable vector index (default: `False`) |
|
|
203
|
+
| `read_only` | `bool` | Open in read-only mode (default: `False`) |
|
|
204
|
+
| `lock_timeout_ms` | `int` | Lock acquisition timeout in milliseconds (default: `250`) |
|
|
205
|
+
| `force` | `str \| None` | Set to `"stale_only"` to force-release stale locks |
|
|
206
|
+
| `force_writable` | `bool` | Open read-only first, then re-open writable (best-effort) |
|
|
207
|
+
|
|
208
|
+
Context manager support:
|
|
209
|
+
|
|
210
|
+
```python
|
|
211
|
+
with use("basic", "notes.mv2") as mv:
|
|
212
|
+
mv.put(title="Note", label="general", metadata={}, text="Content")
|
|
213
|
+
# File handle automatically closed
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Storing documents
|
|
217
|
+
|
|
218
|
+
```python
|
|
219
|
+
frame_id = mv.put(
|
|
220
|
+
title="Document title",
|
|
221
|
+
label="category",
|
|
222
|
+
metadata={"key": "value"},
|
|
223
|
+
text="Document content...",
|
|
224
|
+
uri="mv2://custom/path",
|
|
225
|
+
tags=["tag1", "tag2"],
|
|
226
|
+
)
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Batch ingestion
|
|
230
|
+
|
|
231
|
+
For bulk imports, `put_many` processes documents in parallel with 100x+ speedup over individual calls:
|
|
232
|
+
|
|
233
|
+
```python
|
|
234
|
+
docs = [
|
|
235
|
+
{"title": "Doc 1", "label": "news", "text": "First document..."},
|
|
236
|
+
{"title": "Doc 2", "label": "news", "text": "Second document..."},
|
|
237
|
+
# ... thousands more
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
frame_ids = mv.put_many(docs, opts={"compression_level": 3})
|
|
241
|
+
print(f"Ingested {len(frame_ids)} documents")
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Searching
|
|
245
|
+
|
|
246
|
+
```python
|
|
247
|
+
results = mv.find(query, k=5, snippet_chars=240, scope=None, mode=None)
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
| Parameter | Type | Description |
|
|
251
|
+
|-----------|------|-------------|
|
|
252
|
+
| `query` | `str` | Search query |
|
|
253
|
+
| `k` | `int` | Number of results (default: `5`) |
|
|
254
|
+
| `snippet_chars` | `int` | Snippet length (default: `240`) |
|
|
255
|
+
| `scope` | `str` | Filter by URI prefix |
|
|
256
|
+
| `mode` | `str` | `"auto"`, `"lex"`, or `"sem"` |
|
|
257
|
+
|
|
258
|
+
Semantic/hybrid options (when `mode != "lex"`):
|
|
259
|
+
|
|
260
|
+
| Parameter | Type | Description |
|
|
261
|
+
|-----------|------|-------------|
|
|
262
|
+
| `query_embedding` | `list[float] \| None` | Precomputed query embedding |
|
|
263
|
+
| `query_embedding_model` | `str \| None` | Force embedding model for auto query embeddings |
|
|
264
|
+
| `adaptive` | `bool \| None` | Enable adaptive retrieval cutoff |
|
|
265
|
+
| `min_relevancy` | `float \| None` | Minimum relevancy (default: `0.5` when adaptive) |
|
|
266
|
+
| `max_k` | `int \| None` | Maximum results (default: `100` when adaptive) |
|
|
267
|
+
| `adaptive_strategy` | `str \| None` | One of: `relative`, `absolute`, `cliff`, `elbow`, `combined` |
|
|
268
|
+
|
|
269
|
+
### Retrieval-augmented generation
|
|
270
|
+
|
|
271
|
+
```python
|
|
272
|
+
response = mv.ask(
|
|
273
|
+
question,
|
|
274
|
+
k=6,
|
|
275
|
+
mode="auto",
|
|
276
|
+
model="openai:gpt-4o-mini",
|
|
277
|
+
api_key=os.environ.get("OPENAI_API_KEY"),
|
|
278
|
+
context_only=False,
|
|
279
|
+
mask_pii=False,
|
|
280
|
+
)
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
| Parameter | Type | Description |
|
|
284
|
+
|-----------|------|-------------|
|
|
285
|
+
| `question` | `str` | Question to answer |
|
|
286
|
+
| `k` | `int` | Documents to retrieve (default: `6`) |
|
|
287
|
+
| `mode` | `str` | `"auto"`, `"lex"`, or `"sem"` |
|
|
288
|
+
| `model` | `str` | LLM for synthesis (e.g., `"openai:gpt-4o-mini"`, `"nvidia:meta/llama3-8b-instruct"`) |
|
|
289
|
+
| `api_key` | `str` | API key for the LLM provider |
|
|
290
|
+
| `context_only` | `bool` | Skip synthesis, return context only |
|
|
291
|
+
| `mask_pii` | `bool` | Redact PII from response |
|
|
292
|
+
|
|
293
|
+
Semantic/hybrid options (when `mode != "lex"`):
|
|
294
|
+
|
|
295
|
+
| Parameter | Type | Description |
|
|
296
|
+
|-----------|------|-------------|
|
|
297
|
+
| `query_embedding` | `list[float] \| None` | Precomputed query embedding |
|
|
298
|
+
| `query_embedding_model` | `str \| None` | Force embedding model for auto query embeddings |
|
|
299
|
+
| `adaptive` | `bool \| None` | Enable adaptive retrieval cutoff |
|
|
300
|
+
| `min_relevancy` | `float \| None` | Minimum relevancy (default: `0.5` when adaptive) |
|
|
301
|
+
| `max_k` | `int \| None` | Maximum results (default: `100` when adaptive) |
|
|
302
|
+
| `adaptive_strategy` | `str \| None` | One of: `relative`, `absolute`, `cliff`, `elbow`, `combined` |
|
|
303
|
+
|
|
304
|
+
### Best practices: Adaptive retrieval
|
|
305
|
+
|
|
306
|
+
For best search quality, enable adaptive retrieval with the `combined` strategy. This dynamically adjusts result counts based on relevance scores rather than returning a fixed `k`:
|
|
307
|
+
|
|
308
|
+
```python
|
|
309
|
+
# Recommended for find()
|
|
310
|
+
results = mv.find(
|
|
311
|
+
"your query",
|
|
312
|
+
mode="sem", # or "auto"
|
|
313
|
+
adaptive=True,
|
|
314
|
+
adaptive_strategy="combined",
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
# Recommended for ask()
|
|
318
|
+
answer = mv.ask(
|
|
319
|
+
"your question",
|
|
320
|
+
mode="auto",
|
|
321
|
+
adaptive=True,
|
|
322
|
+
adaptive_strategy="combined",
|
|
323
|
+
)
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
The `combined` strategy uses both relative thresholds and score cliff detection to filter out low-relevance results, providing higher quality context for RAG applications.
|
|
327
|
+
|
|
328
|
+
### Timeline queries
|
|
329
|
+
|
|
330
|
+
```python
|
|
331
|
+
entries = mv.timeline(limit=100, since=1704067200, reverse=True)
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Statistics
|
|
335
|
+
|
|
336
|
+
```python
|
|
337
|
+
stats = mv.stats()
|
|
338
|
+
# {'frame_count': 42, 'size_bytes': 1048576, 'has_lex_index': True, ...}
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### File operations
|
|
342
|
+
|
|
343
|
+
```python
|
|
344
|
+
# Commit pending changes
|
|
345
|
+
mv.seal()
|
|
346
|
+
|
|
347
|
+
# Explicit commit without sealing
|
|
348
|
+
mv.commit()
|
|
349
|
+
|
|
350
|
+
# Verify file integrity
|
|
351
|
+
report = mv.verify(deep=True)
|
|
352
|
+
report = Memvid.verify("notes.mv2", deep=True) # also supported
|
|
353
|
+
|
|
354
|
+
# Repair indexes
|
|
355
|
+
result = mv.doctor(dry_run=True)
|
|
356
|
+
result = Memvid.doctor("notes.mv2", rebuild_time_index=True)
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### Diagnostics
|
|
360
|
+
|
|
361
|
+
```python
|
|
362
|
+
from memvid_sdk import info, lock_who, lock_nudge, verify_single_file
|
|
363
|
+
|
|
364
|
+
print(info()) # versions + enabled features
|
|
365
|
+
print(lock_who("notes.mv2")) # lock status + owner (if locked)
|
|
366
|
+
print(lock_nudge("notes.mv2")) # request stale lock release
|
|
367
|
+
verify_single_file("notes.mv2") # ensure no sidecar files exist
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
## Framework adapters
|
|
371
|
+
|
|
372
|
+
Adapters expose framework-native tools when the corresponding dependency is installed.
|
|
373
|
+
|
|
374
|
+
### LangChain
|
|
375
|
+
|
|
376
|
+
```python
|
|
377
|
+
mv = use("langchain", "notes.mv2")
|
|
378
|
+
tools = mv.tools # List of StructuredTool instances
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### LlamaIndex
|
|
382
|
+
|
|
383
|
+
```python
|
|
384
|
+
mv = use("llamaindex", "notes.mv2")
|
|
385
|
+
engine = mv.as_query_engine()
|
|
386
|
+
response = engine.query("What is the timeline?")
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### OpenAI function calling
|
|
390
|
+
|
|
391
|
+
```python
|
|
392
|
+
mv = use("openai", "notes.mv2")
|
|
393
|
+
functions = mv.functions # JSON schemas for tool_calls
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### CrewAI
|
|
397
|
+
|
|
398
|
+
```python
|
|
399
|
+
mv = use("crewai", "notes.mv2")
|
|
400
|
+
tools = mv.tools # CrewAI-compatible tools
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
## Table extraction
|
|
404
|
+
|
|
405
|
+
Extract structured tables from PDFs:
|
|
406
|
+
|
|
407
|
+
```python
|
|
408
|
+
result = mv.put_pdf_tables("report.pdf", embed_rows=True)
|
|
409
|
+
print(f"Extracted {result['tables_count']} tables")
|
|
410
|
+
|
|
411
|
+
tables = mv.list_tables()
|
|
412
|
+
data = mv.get_table(tables[0]["table_id"], format="dict")
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
## Error handling
|
|
416
|
+
|
|
417
|
+
Typed exceptions with stable codes:
|
|
418
|
+
|
|
419
|
+
| Code | Exception | Description |
|
|
420
|
+
|------|-----------|-------------|
|
|
421
|
+
| MV001 | `CapacityExceededError` | Storage capacity exceeded |
|
|
422
|
+
| MV002 | `TicketInvalidError` | Invalid ticket signature |
|
|
423
|
+
| MV003 | `TicketReplayError` | Ticket replay detected |
|
|
424
|
+
| MV004 | `LexIndexDisabledError` | Lexical index not enabled |
|
|
425
|
+
| MV005 | `TimeIndexMissingError` | Time index missing |
|
|
426
|
+
| MV006 | `VerifyFailedError` | Verification failed |
|
|
427
|
+
| MV007 | `LockedError` | File locked by another process |
|
|
428
|
+
| MV008 | `ApiKeyRequiredError` | API key required |
|
|
429
|
+
| MV009 | `MemoryAlreadyBoundError` | File bound to another memory |
|
|
430
|
+
| MV010 | `FrameNotFoundError` | Frame not found |
|
|
431
|
+
| MV011 | `VecIndexDisabledError` | Vector index not enabled |
|
|
432
|
+
| MV012 | `CorruptFileError` | Corrupt file / invalid TOC |
|
|
433
|
+
| MV013 | `FileNotFoundError` | File not found |
|
|
434
|
+
| MV014 | `VecDimensionMismatchError` | Vector dimension mismatch |
|
|
435
|
+
| MV015 | `EmbeddingFailedError` | Embedding failed |
|
|
436
|
+
| MV016 | `ClipIndexDisabledError` | CLIP index not enabled |
|
|
437
|
+
| MV017 | `NerModelNotAvailableError` | NER model not available |
|
|
438
|
+
|
|
439
|
+
```python
|
|
440
|
+
from memvid_sdk import CapacityExceededError
|
|
441
|
+
|
|
442
|
+
try:
|
|
443
|
+
mv.put(...)
|
|
444
|
+
except CapacityExceededError:
|
|
445
|
+
print("Out of storage capacity")
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
## Environment variables
|
|
449
|
+
|
|
450
|
+
| Variable | Description |
|
|
451
|
+
|----------|-------------|
|
|
452
|
+
| `MEMVID_API_KEY` | API key for capacity beyond free tier |
|
|
453
|
+
| `MEMVID_API_URL` | Control plane URL (for enterprise deployments) |
|
|
454
|
+
| `MEMVID_OFFLINE` | Set to `1` to disable network providers and model downloads |
|
|
455
|
+
| `MEMVID_MODELS_DIR` | Path to local embedding model cache (fastembed) |
|
|
456
|
+
| `MEMVID_CLIP_MODEL` | Local CLIP model name (default: `mobileclip-s2`) |
|
|
457
|
+
| `OPENAI_API_KEY` | API key for OpenAI embeddings (and can be used for `ask()` examples) |
|
|
458
|
+
| `OPENAI_BASE_URL` | Optional OpenAI-compatible base URL for embeddings |
|
|
459
|
+
| `NVIDIA_API_KEY` | API key for NVIDIA Integrate embeddings |
|
|
460
|
+
| `NVIDIA_BASE_URL` | Optional NVIDIA Integrate base URL (default: `https://integrate.api.nvidia.com`) |
|
|
461
|
+
| `NVIDIA_EMBEDDING_MODEL` | Optional NVIDIA embedding model override |
|
|
462
|
+
|
|
463
|
+
## Development
|
|
464
|
+
|
|
465
|
+
Build from source:
|
|
466
|
+
|
|
467
|
+
```bash
|
|
468
|
+
cd proprietary/memvid-bindings/python
|
|
469
|
+
|
|
470
|
+
# Create virtual environment
|
|
471
|
+
python -m venv .venv
|
|
472
|
+
source .venv/bin/activate
|
|
473
|
+
|
|
474
|
+
# Install dev dependencies
|
|
475
|
+
pip install maturin
|
|
476
|
+
|
|
477
|
+
# Build native extension
|
|
478
|
+
maturin develop --release --skip-install
|
|
479
|
+
|
|
480
|
+
# Run tests
|
|
481
|
+
./.venv/bin/python -m pytest -q
|
|
482
|
+
|
|
483
|
+
# Smoke-run offline-safe examples
|
|
484
|
+
./.venv/bin/python scripts/test_examples.py
|
|
485
|
+
|
|
486
|
+
# Optional: run gated embedding runtime tests
|
|
487
|
+
MEMVID_TEST_FASTEMBED=1 ./.venv/bin/python -m pytest -q tests/test_runtime_embeddings_gated.py
|
|
488
|
+
MEMVID_TEST_OPENAI=1 OPENAI_API_KEY=... ./.venv/bin/python -m pytest -q tests/test_runtime_embeddings_gated.py
|
|
489
|
+
MEMVID_TEST_NVIDIA=1 NVIDIA_API_KEY=... ./.venv/bin/python -m pytest -q tests/test_runtime_embeddings_gated.py
|
|
490
|
+
|
|
491
|
+
# Optional: run gated local model tests (requires `memvid models install ...`)
|
|
492
|
+
MEMVID_TEST_CLIP=1 ./.venv/bin/python -m pytest -q tests/test_phase2_models_tables.py
|
|
493
|
+
MEMVID_TEST_NER=1 ./.venv/bin/python -m pytest -q tests/test_phase2_models_tables.py
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
## Requirements
|
|
497
|
+
|
|
498
|
+
- Python 3.8+
|
|
499
|
+
- macOS (Apple Silicon or Intel), Linux (x64), or Windows (x64)
|
|
500
|
+
|
|
501
|
+
## License
|
|
502
|
+
|
|
503
|
+
Apache-2.0. See [LICENSE](./LICENSE).
|
|
504
|
+
|