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.2.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_weaviate-0.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5dc557bf7c859b523e685dbd0db09a25b2281bdba2a8e2000cbf45f121ced7 |
|
MD5 | 1a0e58ce9cc3f549355e19d771b0e4f2 |
|
BLAKE2b-256 | 4988d08db1c560ec3c2eb9656f9aeff0bdc05aa59c4144647e93b481e848c392 |
File details
Details for the file llama_index_readers_weaviate-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_weaviate-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d524a0f56885a6ce85e609f89d6e3369f2de6a362d16fefea932bcae97d3759c |
|
MD5 | 2ed5e7eb9dbfa15d416a25894f3ed870 |
|
BLAKE2b-256 | ff9f43a5612fd8b1f1de2ca37bc2cf81cc2d81f350ce8a9380099fbee51ee94a |