Search function for "Kartverket"
- Setup and start
Docker Desktop
- Start 3 terminal windows, and open the first terminal in the root folder (
GeoGPT folder
) - In the first terminal window, run these commands to set everything up
npm i
(installs required node packages)npm i -g http-server
(installs module globally required for the server)- Mac/linux:
sudo sh run_pgvector.sh
- Windows:
run_pgvector.bat
node vector_creation/create_vector.js
(creates embeddings)node vector_insertion/insert_csv.js
(creates table and inserts embeddings)
- Navigate the second terminal window to the folder
chat/server
and runnode index.js
- Navigate the final terminal window to the folder
chat/app
and runhttp-server
- Setup and start docker
- Start run_pgvector (found in /PGVDocker)
- Mac/linux:
sudo sh run_pgvector.sh
- Windows:
run_pgvector.bat
- Mac/linux:
- Connect to the database (see password in run_pgvector.sh)
- host:localhost
- port:5432
- user:asd
- password:asd
- database:postgres
- Run
vdb_setup.sql
- Run
npm i
in terminal (root folder) - Run insert_csv.js in the folder "vector_insertion" (
node insert_csv.js
) - Populate the config with api key
- Navigate to src/private and run node vector_search.js
- Navigate to src/public and open search_geo_norge.html in browser
See pgvector