Skip to main content

llama-index readers metal integration

Project description

LlamaIndex Readers Integration: Metal

Overview

Metal Reader is designed to load data from the Metal Vector store, which provides search functionality based on query embeddings and filters. It retrieves documents from the Metal index associated with the provided API key, client ID, and index ID.

Installation

You can install Metal Reader via pip:

pip install llama-index-readers-metal

To use Metal Reader, you must have a vector store first. Follow this to create a metal vector store, Setup Metal Vector Store

Usage

from llama_index.readers.metal import MetalReader

# Initialize MetalReader
reader = MetalReader(
    api_key="<Metal API Key>",
    client_id="<Metal Client ID>",
    index_id="<Metal Index ID>",
)

# Load data from Metal
documents = reader.load_data(
    limit=10,  # Number of results to return
    query_embedding=[0.1, 0.2, 0.3],  # Query embedding for search
    filters={"field": "value"},  # Filters to apply to the search
    separate_documents=True,  # Whether to return separate documents
)

This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.

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_readers_metal-0.4.0.tar.gz (4.3 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_readers_metal-0.4.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_metal-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_metal-0.4.0.tar.gz
Algorithm Hash digest
SHA256 57e00abc73a26457313f4a8c09e4e179cd82f8721b805d54591b37910a79de68
MD5 a640a1bd02f9d9e60e7cadcdbc1e70f5
BLAKE2b-256 c786d350f05c8f83ff5fc58b174e172c2c8f7813e2a225769a0c47babcc55791

See more details on using hashes here.

File details

Details for the file llama_index_readers_metal-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_metal-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 896477dcfd4ffc3b5b2024d327d8c761b54d4d4c72fc9278b51613c1a5f3a9bf
MD5 bec9a003d3b886ce2bd5c5588ff1ad8c
BLAKE2b-256 c0e8290e982450a42b38712ccf74bd1a9469ad27891f2be4b47cb3b51fea1765

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