llama-index readers txtai integration
Project description
LlamaIndex Readers Integration: txtai
Overview
The txtai Reader retrieves documents through an existing in-memory txtai index. These documents can then be used in downstream LlamaIndex data structures. If you wish to use txtai itself as an index to organize documents, insert documents, and perform queries on them, please use VectorStoreIndex with TxtaiVectorStore.
Installation
You can install the txtai Reader via pip:
pip install llama-index-readers-txtai
Usage
from llama_index.readers.txtai import TxtaiReader
# Initialize TxtaiReader with an existing txtai index
reader = TxtaiReader(index="<txtai Index object>")
# Load data from txtai index
documents = reader.load_data(
query="<Query Vector>",
id_to_text_map={"<ID>": "<Text>"},
k=4,
separate_documents=True,
)
This loader is designed to be used as a way to load data into LlamaIndex.
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_txtai-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_txtai-0.3.0.tar.gz
- Upload date:
- Size: 2.6 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 | 379162c1567e29611095c7d5a8755c1c91f345be82b7e891d8373e59e7bbcbe3 |
|
MD5 | 9e989add742eb3f2c3c717d7cdf34604 |
|
BLAKE2b-256 | 983464befdd11d09ee638a1971a98eae6c810337f71e6413b3ae1b899649be61 |
File details
Details for the file llama_index_readers_txtai-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_txtai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.0 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 | 815930ad1c3d3c757dfe44633c25b7c200063903c5d7bbf4160a8e903e94727e |
|
MD5 | b72682d6a932ad313be190fea8abafa4 |
|
BLAKE2b-256 | e1cf0937427818e0a88eaa6577dcafb5291111b7f3b83827bd302ef4b5ff53e4 |