-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
15,456 additions
and
9,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use the official PostgreSQL image as a base | ||
FROM postgres:14.1-alpine | ||
|
||
# Install necessary packages to build the extension | ||
RUN apk add --no-cache \ | ||
build-base \ | ||
git \ | ||
postgresql-dev | ||
|
||
# Clone and build pgvector | ||
RUN git clone https://github.com/ankane/pgvector.git \ | ||
&& cd pgvector \ | ||
&& make && make install | ||
|
||
# Cleanup unnecessary packages after installation | ||
RUN apk del build-base git postgresql-dev | ||
|
||
RUN echo "CREATE EXTENSION vector;" > /docker-entrypoint-initdb.d/init-vector-extension.sql | ||
|
||
# Set the shared preload libraries config | ||
RUN echo "shared_preload_libraries='pgvector'" >> /var/lib/postgresql/data/postgresql.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,3 @@ yarn-error.log* | |
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# zustand lib force to add | ||
!./lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = { | ||
async redirects() { | ||
return [ | ||
{ | ||
source: '/join-discord', | ||
destination: 'https://discord.gg/e4AYNnFg2F', | ||
permanent: false, | ||
}, | ||
{ | ||
source: '/feedback', | ||
destination: 'https://github.com/ReByteAI/bug-tracker', | ||
permanent: false, | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Oops, something went wrong.