> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Lyzr + Qdrant

Qdrant, a leading vector database and vector similarity search engine, and Lyzr, an enterprise agent framework known for its simplicity and data privacy, have partnered to launch the ‘Private Perplexity’ application for enterprise customers. With the ‘Knowledge Search’ app, enterprises can deploy a 100% private and secure document and content search engine for their organization in their cloud account.

## How to access the demo app?

Visit [https://qdrant.lyzr.ai/](https://qdrant.lyzr.ai/) to test the micro-app built on Lyzr and Qdrant.

<img src="https://mintcdn.com/lyzrinc/cCc4MJwk0sDOW3jN/assets/images/cookbooks/lyzr-qdrant.png?fit=max&auto=format&n=cCc4MJwk0sDOW3jN&q=85&s=5750470e2455f3ebc06b47bfb15850d2" alt="Lyzr Qdrant" width="2904" height="1502" data-path="assets/images/cookbooks/lyzr-qdrant.png" />

## Key Features

* You can add any number of source data at any point in time. The vectorization and indexing are dynamic and happen as and when new data is added.
* When you search, you also get the data citations that will be useful for locating the source file.
* You can save, share, and even bookmark the search results
* The micro-app is open-sourced. You can modify the UI, add your logo and use the app as is for your organization.

## Looking to deploy the solution using open-source versions?

[Here](https://colab.research.google.com/drive/1ks0oba9z3n2UFAKwvsMu52Nkf8o3GHR2?usp=sharing) is the colab notebook to help you get started fast.

Let’s see how it works.

1. Import the necessary libraries. OpenAI GPT4 Turbo is the LLM, Lyzr is the agent framework and Qdrant is the vector store.

```python theme={null}
import openai
import qdrant_client
from lyzr import SearchAgent
```

2. Pass the OpenAI and Qdrant credentials

```python theme={null}
os.environ["OPENAI_API_KEY"] = ""
openai.apikey = os.environ["OPENAI_API_KEY"]
QDRANT_CLIENT_URL = ""
QDRANT_API_KEY = ""
```

3. Setup the Qdrant vector store with Lyzr Search Agent

```python theme={null}
client = qdrant_client.QdrantClient(
   url= QDRANT_CLIENT_URL,
    api_key= QDRANT_CLIENT_URL,
)

vector_store_params = {
    "vector_store_type":"QdrantVectorStore",
    "client":client,
    "collection_name":"lyzr_core"
}

search = SearchAgent()
```

4. Pass the data that the RAG pipeline will access. In this example, we pass a PDF document as the data source.

```python theme={null}
agent = search.add_pdf(input_files=["pdf_file_path"],vector_store_params=vector_store_params)
```

5. Ask your search query.

```python theme={null}
response = agent.query("Ask your query")
```

That’s it. You have built a personal, fully-private, open-source version of the perplexity-style search engine for your organization in just 5 steps.
