Closed fahdmirza closed 4 months ago
Can you share the code you are running?
Can you share the code you are running?
I shared it above already with all the steps. Its from your git repo.
Can you share the code you are running?
I shared it above already with all the steps. Its from your git repo.
If you are running the code from the GitHub repo README and getting that error I'm guessing we have an outdated migration in our docker container. If you want to use it for now I would recommend signing up on our site. You get a free $100 which goes a long way. In the meantime I will investigate the docker container.
Could I request you to please update the repo with this information as I battled with it for the last 3 hours. Also your cloud offering asks for payment option, which I am not comfortable providing. Anyway, thanks for the help.
This repo is agnostic to PostgresML's repo. You don't need to use docker to work with it that is one option. You can run Postgres yourself and install the pgml and pgvector extensions separately. Closing this issue as its not something to be fixed in this repo but I'll look into it.
I too was getting that issue, but I noticed in the postgresml documentation that there are two versions specified:
Mac
I changed the docker-compose.yml
to 2.7.13
:
docker-compose.yml
version: '3.9'
services:
postgresml:
image: 'ghcr.io/postgresml/postgresml:2.7.13'
command: tail -f /dev/null
ports:
- '8000:8000'
- '5433:5432'
# I couldn't get this to work for some reason, for now doesn't matter
# volumes:
# - './data/postgresql:/var/lib/postgresql'
tty: true
stdin_open: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0', '1']
# device_ids: ['0']
capabilities: [gpu]
However, I couldn't run the example in the README.md
Because it requires trust_remote_code=True
, and I'm not sure where to set it (for reference it takes me about 2 minutes before it hit that):
collection = Collection("korvus-demo-v0")
pipeline = Pipeline(
"v1",
{
"text": {
"splitter": {"model": "recursive_character"},
"semantic_search": {"model": "Alibaba-NLP/gte-base-en-v1.5"},
}
},
)
Next I tried the Example app for Semantic Search, after 10 minutes I hit an unexpected keyword
error, so perhaps the versions do matter :shrug:
KORVUS_DATABASE_URL=postgresql://postgresml@localhost:5433 python main.py
trust_remote_code
is now supported in the master branch of pgml, although we haven't released new docker images yet.
Hi, I have installed the postgres as per your getting started guide and then followed the instructins in read me and getting following error:
Steps I followed:
conda create -n korvus python=3.11 -y && conda activate korvus
docker run \ -it \ -v postgresml_data:/var/lib/postgresql \ --gpus all \ -p 5433:5432 \ -p 8000:8000 \ ghcr.io/postgresml/postgresml:2.7.3 \ sudo -u postgresml psql -d postgresml
pip install korvus
export KORVUS_DATABASE_URL="postgresql://postgresml:post@localhost:5433/postgresml"