-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sparsevec in weighted vector search function #328
base: main
Are you sure you want to change the base?
Changes from 6 commits
b689c2d
ec924eb
decf208
c661fea
4a20f39
2eff4f1
17bc1f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG VERSION=15 | ||
ARG PGVECTOR_VERSION=0.5.1 | ||
ARG PGVECTOR_VERSION=0.7.3-lanterncloud | ||
#fix pg_cron at the latest commit of the time | ||
ARG PG_CRON_COMMIT_SHA=7e91e72b1bebc5869bb900d9253cc9e92518b33f | ||
|
||
|
@@ -31,7 +31,7 @@ RUN gem install pg -- --with-pg-include=/usr/local/pgsql/include/ --with-pg-lib= | |
# hack to make sure postgres user has write access to externally mounted volumes | ||
RUN mkdir /lantern_shared && chown postgres:postgres /lantern_shared | ||
|
||
RUN cd /root/postgresql-15.5/contrib && make install -j | ||
RUN cd /root/postgresql-15.5/contrib && make install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The error I get with -j |
||
|
||
# allow non-root users to install in the container to make it easier to run update-tests | ||
RUN chmod -R 777 /usr/local/pgsql/lib/ /usr/local/pgsql/share/extension/ /usr/local/pgsql/include/server/ | ||
|
@@ -41,7 +41,7 @@ USER postgres | |
RUN pip install GitPython libtmux | ||
|
||
# Build & Install pgvector | ||
RUN wget --quiet -O pgvector.tar.gz https://github.com/pgvector/pgvector/archive/refs/tags/v${PGVECTOR_VERSION}.tar.gz && \ | ||
RUN wget --quiet -O pgvector.tar.gz https://github.com/lanterndata/pgvector/archive/refs/tags/v${PGVECTOR_VERSION}.tar.gz && \ | ||
tar xzf pgvector.tar.gz && \ | ||
(cd pgvector-${PGVECTOR_VERSION} && make -j && make install) | ||
|
||
|
@@ -55,7 +55,7 @@ COPY . . | |
RUN sudo rm -rf build \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -DCMAKE_BUILD_TYPE=Debug .. \ | ||
&& cmake .. \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. info: Removed '-DCMAKE_BUILD_TYPE=Debug'. This changes the build type from Debug to default (usually Release). Ensure this is intentional and won't affect development workflows. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why change this? The dockerfile is meant for development and I often use GDB from inside it, so having a build with symbols is often good. Though, I usually attach a folder from host and rebuild the DB for debugging so not a big deal but would still like to know why the change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build did not succeed for me without it |
||
&& make -j install | ||
|
||
# Install benchmarking tools in build folder | ||
|
@@ -65,7 +65,7 @@ RUN git clone https://github.com/lanterndata/benchmark build/benchmark \ | |
&& pip install -r external/requirements.txt | ||
|
||
# Install perf | ||
RUN sudo apt update && sudo apt install -y linux-tools-common linux-tools-generic linux-tools-`uname -r` | ||
RUN sudo apt update && sudo apt install -y linux-tools-common linux-tools-generic | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. info: Removed 'linux-tools- |
||
# in host, enable perf_event paranoid via | ||
# echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
info: Removed '-j' flag from make install. This might slow down the build process.