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.1.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.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_tldw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba4ef4cef27b5db45d6d74070a5750a173ab88960f7397fe8981df842f0e2647
MD5 e914a87a03521348cd118bb496a69442
BLAKE2b-256 06f698727993a521cf6370625bf73adb9b71876b451f3952bd0143081bad9fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_tldw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e203a31015dee9e07b526e600c2b842f1aa1d0b7e0ebe3ef0d0e8079d4a2a89c
MD5 b56983692b55a4ea273181cb098c85aa
BLAKE2b-256 81b3e0b07dac505d3cd07e0b0a6ee613b99f25141f2ae96b2d55d9b67ff90cc1

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