langchain
langchain copied to clipboard
update Qdrant documentation
fix from_documents method usage for Qdrant in documentation as previous example doesn't work
That's right! I'll update this
Looks good to me. Changes summary:
- Removed
prefer_grpc=True - Added a note about the
from_documentsendpoint in Langchain — not specific to qdrant - Changed url to a kwarg with
url=url
Why prefer_grpc has been removed?
Why
prefer_grpchas been removed?
also wondering 👆
Not all APIs are implemented in gRPC yet. The official qdrant README doesn't recommend this as a starting option either
from qdrant_client import QdrantClient
qdrant = QdrantClient(":memory:") # Create in-memory Qdrant instance, for testing, CI/CD
# OR
client = QdrantClient(path="path/to/db") # Persists changes to disk, fast prototyping
In Client-Server:
qdrant = QdrantClient("http://localhost:6333") # Connect to existing Qdrant instance, for production
That said, it should be fine both ways — gRPC will indeed be faster for insert/upsert kind of operations.
@meal Hi , could you, please, resolve the merging issues and address the last comments (if needed)? After that ping me and I push this PR for the review. Thanks!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| langchain | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2023 11:30pm |