Skip to main content

TL;DW Video Retriever

Overview

TL;DW is a powerful video understanding API that retrieves precise moments from videos using natural language queries. By integrating TL;DW with LlamaIndex, we can efficiently index and search video content, enabling seamless knowledge retrieval from videos.

Setup

  • Obtain API keys from tl;dw Playground. New users are granted free indexing minutes automatically.

  • Install the required packages:

pip install llama-index-retrievers-tldw

Usage

  • Initialize the TldwRetriever with your API key and collection ID:
from llama_index.retrievers.tldw import TldwRetriever
from llama_index.core.query_engine import RetrieverQueryEngine

# Initialize the retriever
retriever = TldwRetriever(
    api_key="YOUT_TLDW_API_KEY",
    collection_id="YOUR_COLLECTION_ID",  # Replace with your actual collection ID
)

# Create a query engine
query_engine = RetrieverQueryEngine(
    retriever=retriever,
)

# Query and summarize response
response = query_engine.query("What are the brands of smart watches reviewed?")
print(
    response
)  # "The brands of smartwatches reviewed in the videos are Apple and Garmin."

Support

If you have any questions or feedback, please feel free to reach out to us.

Download files

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

Source Distribution

llama_index_retrievers_tldw-0.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

llama_index_retrievers_tldw-0.3.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_retrievers_tldw-0.3.0.tar.gz.

File metadata

  • Download URL: llama_index_retrievers_tldw-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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_retrievers_tldw-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b7ea8b773e2f20ad656879305acc550c02c35d26966d4e871415a0678f276b67
MD5 82438879fcb20071c53c592b036b7da1
BLAKE2b-256 861cab6f213edfeedf6980ce02368e99c472cf02f61f137f92c3ea20c718143e

See more details on using hashes here.

File details

Details for the file llama_index_retrievers_tldw-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_retrievers_tldw-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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_retrievers_tldw-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fae0852920c7f72e294a6eddecf7f724a43950e2544e105ca973e7227d75f7e2
MD5 850c5d37b6823fa1b292d2529f44f24c
BLAKE2b-256 d71592a9a74b8f58b06e594919e150603191e80a58ccc9eed3500d5917010cf1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page