QdrantVectorStore features and configurations head to the API reference.
概述
集成详情
设置
To use Qdrant vector stores, you’ll need to set up a Qdrant instance and install the@langchain/qdrant integration package.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai integration package. You can also use other supported embeddings models if you wish.
凭证
Once you’ve done this set aQDRANT_URL environment variable:
实例化
Manage vector store
Add items to vector store
Query vector store
Once your vector store has been created and the relevant documents have been added you will most likely wish to query it during the running of your chain or agent.Query directly
Performing a simple similarity search can be done as follows:metadata.
If you want to execute a similarity search and receive the corresponding scores you can run:
Query by turning into retriever
You can also transform the vector store into a retriever for easier usage in your chains.Usage for retrieval-augmented generation
For guides on how to use this vector store for retrieval-augmented generation (RAG), see the following sections:API 参考
有关所有QdrantVectorStore 功能和配置的详细文档,请前往 API 参考。
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

