Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Loader for Macrometa GDN #484

Merged
merged 16 commits into from
Sep 29, 2023
Merged
Prev Previous commit
Next Next commit
edit readme
  • Loading branch information
dain-macrometa committed Aug 22, 2023
commit 84c3d31e5259f6b704cd0b8db7fedc0fa544e028
16 changes: 15 additions & 1 deletion llama_hub/macrometa_gdn/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Macrometa GDN Loader

This loader takes in a 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 contructor, and then load the data using an array of collection names.

```python
from llama_index import download_loader

MacrometaGDNLoader = download_loader('MacrometaGDNLoader')

collections = ['test_collection']
loader = MacrometaGDNLoader(url="https://api-macrometa.io",apikey="test")
vectors= loader.load_data(collection_list=collections)
```