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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_tldw-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b0d919dc6e1043111b89485996ebe72008338da3099a054fda1774f204f3fda4
MD5 658d166fe14e23f0d1a7f0132264bd2f
BLAKE2b-256 6316222df636a455d9730141c989d7ba7f3174e04d0d24a7682bef617d3ffa27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_tldw-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab4d77495548c10f0c746285552139fdd77c934aa28f5cd145e1dd076e91d8b
MD5 960eea1b52e7be74677880d89a498dc1
BLAKE2b-256 875b4b4b4884232de9ec1938d8e84437afc1de9305524c12fd56f350d06e5d87

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