llama-index readers weaviate integration
Project description
LlamaIndex Readers Integration: Weaviate
Overview
The Weaviate Reader retrieves documents from Weaviate through vector lookup. It allows you to specify a class name and properties to retrieve from documents, or to provide a custom GraphQL query. You can choose to receive separate Document objects per document or concatenate retrieved documents into one Document.
Installation
You can install the Weaviate Reader via pip:
pip install llama-index-readers-weaviate
Usage
from llama_index.readers.weaviate import WeaviateReader
# Initialize WeaviateReader with host and optional authentication
reader = WeaviateReader(
host="<Weaviate Host>", auth_client_secret="<Authentication Client Secret>"
)
# Load data from Weaviate
documents = reader.load_data(
class_name="<Class Name>", properties=["property 1", "property 2"]
)
You can follow this tutorial to learn more on how to use Weaviate Reader
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
Built Distribution
File details
Details for the file llama_index_readers_weaviate-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_weaviate-0.3.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75de9db9c8059a707cd7d8ff10105c91a1966f613ca0243313905984183a45c9 |
|
MD5 | fdde8d719664c16f9a5005db8e626d6e |
|
BLAKE2b-256 | d29759ae1aa24bf0ada8edb578850645351c3a6963c149f1c1fafc90c279b5b1 |
File details
Details for the file llama_index_readers_weaviate-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_weaviate-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377dff8d5ac5617f1dff4d8dd30512fcbcfdfbc9c6a25d80b97ad35b4d17de5b |
|
MD5 | 8097d18e8330c674d4a9385f7e5f30c1 |
|
BLAKE2b-256 | cf2d9f79fac4db0d5a31020cc81c9ffe979dbc067cb97a5dbecfd977d1d8f130 |