Skip to main content

llama-index packs deeplake_multimodal_retrieval integration

Project description

DeepLake DeepMemory Pack

This LlamaPack inserts your multimodal data (texts, images) into deeplake and instantiates an deeplake retriever, which will use clip for embedding images and GPT4-V during runtime.

CLI Usage

You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index python package:

llamaindex-cli download-llamapack DeepLakeMultimodalRetrieverPack --download-dir ./deeplake_multimodal_pack

You can then inspect the files at ./deeplake_multimodal_pack and use them as a template for your own project!

Code Usage

You can download the pack to a ./deeplake_multimodal_pack directory:

from llama_index.core.llama_pack import download_llama_pack

# download and install dependencies
DeepLakeMultimodalRetriever = download_llama_pack(
    "DeepLakeMultimodalRetrieverPack", "./deeplake_multimodal_pack"
)

From here, you can use the pack, or inspect and modify the pack in ./deepmemory_pack.

Then, you can set up the pack like so:

# setup pack arguments
from llama_index.core.vector_stores import MetadataInfo, VectorStoreInfo

# collection of image and text nodes
nodes = [...]

# create the pack
deeplake_pack = DeepLakeMultimodalRetriever(
    nodes=nodes, dataset_path="llama_index", overwrite=False
)

The run() function is a light wrapper around SimpleMultiModalQueryEngine.

response = deeplake_pack.run("Tell me a bout a Music celebrity.")

You can also use modules individually.

# use the retriever
retriever = deeplake_pack.retriever
nodes = retriever.retrieve("query_str")

# use the query engine
query_engine = deeplake_pack.query_engine
response = query_engine.query("query_str")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_packs_deeplake_multimodal_retrieval-0.4.0.tar.gz.

File metadata

  • Download URL: llama_index_packs_deeplake_multimodal_retrieval-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_packs_deeplake_multimodal_retrieval-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d76d74e044582fc053a3b0ddd37cfb898bdd5af016bb0021672cd8f8ff10dfec
MD5 3891d24c4e3572f5c4dfdac8253e9b3f
BLAKE2b-256 24f674a4bea4bb7a0696ad29022a18ad5a24d4899488a3d6241e588618a43640

See more details on using hashes here.

File details

Details for the file llama_index_packs_deeplake_multimodal_retrieval-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_packs_deeplake_multimodal_retrieval-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_packs_deeplake_multimodal_retrieval-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c542530dc25ec3cf9326d12a1804661d201785091c348c0bc67fe4224165a4b
MD5 8b764ad6dc9f2fa60afbed364f8d1d1f
BLAKE2b-256 2af8a47bac239f2b8d261bb25e282baf59e68b035f3b2e862df5ddfa5d63615b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page