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.0.1.tar.gz (3.0 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.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_retrievers_tldw-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for llama_index_retrievers_tldw-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ddc088b8b6d542af1f16b993d118c6e64f0acbf0b9b1ab406c658c881ed0124c
MD5 5c62d98974170dc9356671b516d840ca
BLAKE2b-256 2b4a2c82e6dedf3299bec531e44e12a006138f7de0346edb08041ccf8d6e6c93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_tldw-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddba6b42fe06dc8384cd1e804863fd60ed4dc190f04554359a3b131b23ac53a6
MD5 d09a5c204ab9f00e9aec619c6de9bc3c
BLAKE2b-256 5ee29ca500ff3cf1998cf381add41b88fcffc1bb4735899c591d165d77379bf5

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