From dddd4635888924d5a942965fb347fe05e099408c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=81ukawski?= Date: Thu, 17 Aug 2023 12:40:23 +0200 Subject: [PATCH] Use QdrantVectorStore instead of GPTQdrantIndex that was removed from LI --- .../content/documentation/integrations/llama-index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qdrant-landing/content/documentation/integrations/llama-index.md b/qdrant-landing/content/documentation/integrations/llama-index.md index 8de67c588..2f2b80849 100644 --- a/qdrant-landing/content/documentation/integrations/llama-index.md +++ b/qdrant-landing/content/documentation/integrations/llama-index.md @@ -8,16 +8,17 @@ weight: 200 LlamaIndex (formerly GPT Index) acts as an interface between your external data and Large Language Models. So you can bring your private data and augment LLMs with it. LlamaIndex simplifies data ingestion and indexing, integrating Qdrant as a vector index. -Installing LlamaIndex is straightforward if we use pip as a package manager: +Installing LlamaIndex is straightforward if we use pip as a package manager. Qdrant is not installed by default, so we need to +install it separately: ```bash -pip install llama-index +pip install llama-index qdrant-client ``` LlamaIndex requires providing an instance of `QdrantClient`, so it can interact with Qdrant server. ```python -from llama_index import GPTQdrantIndex +from llama_index.vector_stores.qdrant import QdrantVectorStore import qdrant_client @@ -26,7 +27,7 @@ client = qdrant_client.QdrantClient( api_key="", # For Qdrant Cloud, None for local instance ) -index = GPTQdrantIndex.from_documents(documents, client=client, collection_name="documents") +index = QdrantVectorStore(client=client, collection_name="documents") ``` The library [comes with a notebook](https://github.com/jerryjliu/llama_index/blob/main/docs/examples/vector_stores/QdrantIndexDemo.ipynb)