> For the complete documentation index, see [llms.txt](https://sds-bit-mesra.gitbook.io/llm-course/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sds-bit-mesra.gitbook.io/llm-course/hands-on-development/4-realtime-rag-with-llamaindex-langchain-and-pathway/retrievers-readers-and-vector-stores.md).

# Retrievers, Readers, and Vector Stores

### What are Retrievers in LlamaIndex?

Retrievers play a critical role in the LlamaIndex ecosystem. They are tasked with fetching the most relevant context for a given user query or message. This process involves:

* Efficiently retrieving relevant context from an index based on the query.
* Being a crucial component in query engines and chat engines for delivering pertinent information.
* The possibility of building atop indexes or being defined independently underscores their versatility.

### Pathway Retriever and its Integration with LlamaIndex

While so far we've used Pathway's LLM app, you might know that Pathway stands out as an open data processing framework, ideal for developing data transformation pipelines and machine learning applications that deal with live and evolving data sources. Interestingly it's the world's fastest framework for stream data processing. ([ArXiV paper](https://arxiv.org/abs/2307.13116)) :wink:

Now, the integration with LlamaIndex is facilitated through the  [`PathwayReader`](https://docs.llamaindex.ai/en/stable/examples/retrievers/pathway_retriever.html#pathway-retriever) and [`PathwayRetriever`](https://docs.llamaindex.ai/en/stable/examples/retrievers/pathway_retriever.html#pathway-retriever). Here our focus is on [**`PathwayRetriever`**](https://docs.llamaindex.ai/en/stable/examples/retrievers/pathway_retriever.html#pathway-retriever) which taps into Pathway's dynamic indexing capabilities to provide always up-to-date answers. This [linked documentation](https://docs.llamaindex.ai/en/stable/examples/retrievers/pathway_retriever.html#pathway-retriever) here is also quite comprehensive but let us give you a quick walkthrough once.&#x20;

**Key Features of the Integration:**

* **Live Data Indexing Pipeline:** Monitors various data sources for changes, parses and embeds documents using LLaMAIndex methods, and builds a vector index.
* **Simple to Complex Pipelines:** While the basic pipeline focuses on indexing files from cloud storage, Pathway supports more sophisticated operations like SQL-like operations, time-based grouping, and a wide range of connectors for comprehensive data pipeline construction.
* **Ease of Setup:** The integration process involves installing necessary packages, setting up environment variables, and configuring data sources to be tracked by Pathway.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sds-bit-mesra.gitbook.io/llm-course/hands-on-development/4-realtime-rag-with-llamaindex-langchain-and-pathway/retrievers-readers-and-vector-stores.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
