Back to Llama Index

LlamaIndex Readers Integration: Bagel

llama-index-integrations/readers/llama-index-readers-bagel/README.md

0.14.21964 B
Original Source

LlamaIndex Readers Integration: Bagel

bash
pip install llama-index-readers-bagel

Bagel Loader

Usage

python
from llama_index.core.schema import Document
from llama_index.readers.bagel import BagelReader

# Initialize BagelReader with the collection name
reader = BagelReader(collection_name="example_collection")

# Load data from Bagel
documents = reader.load_data(
    query_vector=None,
    query_texts=["example text"],
    limit=10,
    where=None,
    where_document=None,
    include=["documents", "embeddings"],
)

Features

  • Retrieve documents, embeddings, and metadata efficiently.
  • Filter results based on specified conditions.
  • Specify what data to include in the retrieved results.

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.