Load vectors from Macrometa GDN collections
A LlamaIndex reader that loads data from Macrometa GDN collections using federation URL and API key authentication.
Why it matters
Extract and load vector data from Macrometa Global Data Network collections into your AI application or indexing pipeline for retrieval-augmented generation and semantic search workflows.
Outcomes
What it gets done
Connect to Macrometa GDN federation using URL and API key
Query specified collections from the distributed database
Extract vector data from one or multiple collections
Return vectors as a list for downstream processing
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-reader-readers-macrometa-gdn | bash Overview
Macrometa GDN Loader
Macrometa GDN Loader is a LlamaIndex reader that connects to Macrometa GDN to retrieve data from collections. It authenticates using a federation URL and API key, then loads data from specified collection names and returns a list of vectors. Use this loader when you need to load data from Macrometa GDN collections into LlamaIndex applications.
What it does
Macrometa GDN Loader is a LlamaIndex reader integration that connects to Macrometa GDN and retrieves data from specified collections. It authenticates using a federation URL and API key, then returns a list of vectors.
When to use - and when NOT to
Use this loader when you need to load data from Macrometa GDN collections into LlamaIndex applications.
Do not use this loader if your data is stored in other databases or vector stores - you'll need a different reader specific to your storage system. Avoid this tool if you don't have Macrometa GDN access credentials or if you're looking to write data to Macrometa rather than read from it.
Inputs and outputs
You provide three inputs: a Macrometa federation URL (typically "https://api-macrometa.io"), an API key for authentication, and an array of collection names from which to load data. The loader returns a list of vectors extracted from the specified collections.
Integrations
This loader integrates with Macrometa GDN. It works within the LlamaIndex ecosystem as a reader component.
Installation and usage
Install the package:
pip install llama-index-readers-macrometa-gdn
Load vectors from Macrometa collections:
from llama_index.readers.macrometa_gdn import MacrometaGDNReader
collections = ["test_collection"]
loader = MacrometaGDNReader(url="https://api-macrometa.io", apikey="test")
vectors = loader.load_data(collection_list=collections)
Who it's for
This loader is built for developers who use Macrometa GDN for data storage and want to build LlamaIndex applications on top of that data.
Source README
Macrometa GDN Loader
pip install llama-index-readers-macrometa-gdn
This loader takes in a Macrometa federation URL, API key, and collection name and returns a list of vectors.
Usage
To use this loader, you need to pass the URL and API key through the class constructor, and then load the data using an array of collection names.
from llama_index.readers.macrometa_gdn import MacrometaGDNReader
collections = ["test_collection"]
loader = MacrometaGDNReader(url="https://api-macrometa.io", apikey="test")
vectors = loader.load_data(collection_list=collections)
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.