- Setup Qdrant database:
docker pull qdrant/qdrant
docker run -p 6333:6333 -v $(pwd)/qdrant_storage:/qdrant/storage qdrant/qdrant
- Create new qdrant collection:
-
curl -X PUT 'http://localhost:6333/collections/rag' \ -H 'Content-Type: application/json' \ --data-raw '{ "vectors": { "size": 4096, "distance": "Dot" } }'
- Install dependencies:
npm install
- Run import:
npm run start langchain-qdrant.ts import
- Ask question:
npm run start langchain-qdrant.ts ask