Skip to content

Trouble Connecting to Local Server with LangChain Wrapper / Python Client #2195

Answered by timvisee
hodgesz asked this question in Q&A
Discussion options

You must be logged in to vote

Seems odd it is trying to connect on port 6334 when 6333 is what was passed in 'url' parameter. Any ideas?

Qdrant has a REST (HTTP) and gRPC server. The web console uses REST on 6333, the Python client uses gRPC on 6334 because prefer_grpc=True.

If running the Qdrant Docker image, are you sure port 6334 is exposed as well?

docker run -p 6333:6333 -p 6334:6334 \
    -v $(pwd)/qdrant_storage:/qdrant/storage \
    qdrant/qdrant

You could set prefer_grpc=False to only use the REST API but that is not recommended.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hodgesz
Comment options

Answer selected by timvisee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants