private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Connection to an external Qdrant instance is not working

Open bcatalin opened this issue 1 year ago • 4 comments

Connection to an external qdrant instance is not working anymore. It was working in the last release.

My changes in settings.yaml are:

vectorstore:
  database: qdrant

qdrant:
  url: http://localhost:6333
  port: 6333
  host: localhost
  https: false

The error message that I get when I am running make run is: ValueError: Only one of <location>, <url>, <host> or <path> should be specified.

but there is no path anymore.

bcatalin avatar Mar 09 '24 10:03 bcatalin

You cannot specify values for both url and host. Remove either one.

Anush008 avatar Mar 11 '24 16:03 Anush008

It is working fine with

qdrant:
  location: "127.0.0.1:6333" 

or removing the qdrant it will default to localhost:6333 where my Docker qdrant is listening

bcatalin avatar Mar 17 '24 12:03 bcatalin

Could you try

qdrant:
  url: https://<your_cloud_instance_url>:6333
  api_key: xxxxxxx

??

Anush008 avatar Mar 17 '24 13:03 Anush008

Could you try

qdrant:
  url: https://<your_cloud_instance_url>:6333
  api_key: xxxxxxx

??

I am using a Qdrant in a Docker on the same server with privateGPT. I don't have a cloud instance. But using the

qdrant:
  url: "http://localhost:6333"

is working fine, unless I am not restarting the privateGPT, in which case if the collection exists then I have the error from this issue.

bcatalin avatar Mar 17 '24 15:03 bcatalin

Using location OR url is working fine to connect to an external Qdrant

bcatalin avatar Mar 18 '24 11:03 bcatalin

Using location OR url is working fine to connect to an external Qdrant

Hey,

could you please provide more info on how did you make it? i´d like to host qdrant on a server (the same server quehre i´m currentlly hosting Ollama) so i can centrallize both LLM and DB in the same server and every user can access from their local computer via browser.

Castolus avatar Aug 08 '24 06:08 Castolus

Hi, this is the setting for quadrant in settings.xml. I am using it deployed in a Docker

qdrant: url: "http://localhost:6333"

bcatalin avatar Aug 08 '24 10:08 bcatalin