Skip to main content

llama-index retrievers tl;dw AI integration

Project description

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.

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

llama_index_retrievers_tldw-0.2.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.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_retrievers_tldw-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 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_retrievers_tldw-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fa3231f013e3103722f6dbb1c6221a96d36f26edf666721891410ae93b66f146
MD5 199fdd8ae6c70a7d3cc50f7637f2a623
BLAKE2b-256 9b930bb3a2c891583d78a32740779bfb671563627686a6bf38b1f4bed31f0c63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_retrievers_tldw-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.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_retrievers_tldw-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a0b2e3f812f9052001f127ac84c503f51c776eedc2f8c248ec2e888c22a75e7
MD5 3d5e37e71261129c94654bdfb5a513a6
BLAKE2b-256 bbc17e48a10f8834ceedd0a84372aad00f1057add5ff2b823b8130cc48a5d6c1

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