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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_metal-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e1170e786c9ebbdf257c618c5037da01b0f4f7e040975e22950e7e64d49bcb95
MD5 c649a57043c892a551119da22f802726
BLAKE2b-256 2d5d504c272b45aeec644fb9d849292cdcdae3687f58dac0772514397b518723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_metal-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8dccaaf5a30f869d71684032fe9fdec4a1cf9b9e7f2543dc582d9fd6f016103
MD5 7fb4ed672b78c495c5e70901997c5211
BLAKE2b-256 9104c87f05e411332ae5b1df2b6e6745a8564b4f9456095fb7cfbf2896f14c71

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