Closed roldengarm closed 1 month ago
@roldengarm the problem might be in the connection string provided.
Locally, for tests, I use "ConnectionString": "Host=localhost;Port=5432;Username=;Password="
without specifying a db name.
@dluc Thank you for your prompt reply. I've based the connection string on these docs, it is currently:
Host=pgdatabaseonazure.database.azure.com;Port=5432;Username=dbadmin;Password=....
What parameter name should I use to specify a database name? The format of the connection string is not familiar to me, it's also not a format in the connection strings provided in the Azure Portal for the Postgres Database.
Update: just found the docs for the nuget package that KM uses to connect to Postgres, the parameter name is "Database". Probably worthwhile to add that to the documentation @dluc
Adding "Database=" to the connection string has fixed the issue. Closing this.
@roldengarm thank you for the details. Here's a PR to address docs and improve the code a bit: https://github.com/microsoft/kernel-memory/pull/602
Context / Scenario
Previously we used Azure AI Search, which worked fine, but we want to try Postgres now. I've set up a Postgres database on Azure, and run
dotnet run setup
again in the service project & configured the Postgres database as connection. I'm getting the error while ingesting:3D000: database "dbadmin" does not exist
dbadmin is the User account to connect to the database, so unsure why it tries to open it as a database instead.
What happened?
I'm getting the error while ingesting:
3D000: database "dbadmin" does not exist
Stacktrace below in log output.
Importance
I cannot use Kernel Memory
Platform, Language, Versions
I'm running the latest version of Kernel Memory (pulled latest changes on 4 June 2024) as a service on Azure App Service on Windows.
Relevant log output