Update llama-index.md (#588)

Fix LlamaIndex example
This commit is contained in:
Steffen Röcker
2024-02-13 18:47:23 +05:30
committed by GitHub
parent bb1b2771fa
commit e392a639c4
@@ -28,8 +28,10 @@ client = qdrant_client.QdrantClient(
api_key="<qdrant-api-key>", # For Qdrant Cloud, None for local instance
)
index = QdrantVectorStore(client=client, collection_name="documents")
vector_store = QdrantVectorStore(client=client, collection_name="documents")
index = VectorStoreIndex.from_vector_store(vector_store=vector_store)
```
The library [comes with a notebook](https://github.com/jerryjliu/llama_index/blob/main/docs/examples/vector_stores/QdrantIndexDemo.ipynb)
that shows an end-to-end example of how to use Qdrant within LlamaIndex.
that shows an end-to-end example of how to use Qdrant within LlamaIndex.